From: Daniel Stenberg Date: Mon, 16 Feb 2004 16:24:01 +0000 (+0000) Subject: support closesocket() for closing sockets as well, as then we can use this X-Git-Tag: curl-7_11_1~321 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=09aa1659427eff5f695ada0f1666d8f1ba1d3934;p=thirdparty%2Fcurl.git support closesocket() for closing sockets as well, as then we can use this code fine on ares! --- diff --git a/lib/memdebug.h b/lib/memdebug.h index 7b7b713e2a..48f487d673 100644 --- a/lib/memdebug.h +++ b/lib/memdebug.h @@ -82,6 +82,9 @@ int curl_fclose(FILE *file, int line, const char *source); /* sclose is probably already defined, redefine it! */ #undef sclose #define sclose(sockfd) curl_sclose(sockfd,__LINE__,__FILE__) +/* ares-adjusted define: */ +#undef closesocket +#define closesocket(sockfd) curl_sclose(sockfd,__LINE__,__FILE__) #undef fopen #define fopen(file,mode) curl_fopen(file,mode,__LINE__,__FILE__)