1
0
mirror of https://github.com/moparisthebest/curl synced 2024-08-13 17:03:50 -04:00

support closesocket() for closing sockets as well, as then we can use this

code fine on ares!
This commit is contained in:
Daniel Stenberg 2004-02-16 16:24:01 +00:00
parent f2fbb5f3d5
commit 09aa165942

View File

@ -82,6 +82,9 @@ int curl_fclose(FILE *file, int line, const char *source);
/* sclose is probably already defined, redefine it! */ /* sclose is probably already defined, redefine it! */
#undef sclose #undef sclose
#define sclose(sockfd) curl_sclose(sockfd,__LINE__,__FILE__) #define sclose(sockfd) curl_sclose(sockfd,__LINE__,__FILE__)
/* ares-adjusted define: */
#undef closesocket
#define closesocket(sockfd) curl_sclose(sockfd,__LINE__,__FILE__)
#undef fopen #undef fopen
#define fopen(file,mode) curl_fopen(file,mode,__LINE__,__FILE__) #define fopen(file,mode) curl_fopen(file,mode,__LINE__,__FILE__)