Skip to content
Snippets Groups Projects
Commit 09aa1659 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

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

code fine on ares!
parent f2fbb5f3
No related branches found
No related tags found
No related merge requests found
......@@ -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__)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment