summaryrefslogtreecommitdiff
path: root/lib/memdebug.h
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-02-16 16:24:01 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-02-16 16:24:01 +0000
commit09aa1659427eff5f695ada0f1666d8f1ba1d3934 (patch)
treeb70357f12e714eca4be72b89367a4597f9c8a465 /lib/memdebug.h
parentf2fbb5f3d52bf1dfc8e179945016024e47736e4c (diff)
downloadcurl-09aa1659427eff5f695ada0f1666d8f1ba1d3934.tar.gz
support closesocket() for closing sockets as well, as then we can use this
code fine on ares!
Diffstat (limited to 'lib/memdebug.h')
-rw-r--r--lib/memdebug.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/memdebug.h b/lib/memdebug.h
index 7b7b713e2..48f487d67 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__)