projects
/
platform
/
upstream
/
curl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f2fbb5f
)
support closesocket() for closing sockets as well, as then we can use this
author
Daniel Stenberg
<daniel@haxx.se>
Mon, 16 Feb 2004 16:24:01 +0000
(16:24 +0000)
committer
Daniel Stenberg
<daniel@haxx.se>
Mon, 16 Feb 2004 16:24:01 +0000
(16:24 +0000)
code fine on ares!
lib/memdebug.h
patch
|
blob
|
history
diff --git
a/lib/memdebug.h
b/lib/memdebug.h
index
7b7b713
..
48f487d
100644
(file)
--- 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__)