aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorocean <ocean@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-07-19 18:18:51 +0000
committerocean <ocean@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-07-19 18:18:51 +0000
commita41331918ff80eefc7d45f823825dba644550902 (patch)
tree0ba7fb5c89e016c273c54fe4236cdf2693d9586b
parent97122bdb613851ec43ade6b7fb2d7358fc3299d4 (diff)
downloadruby-a41331918ff80eefc7d45f823825dba644550902.tar.gz
* ext/socket/socket.c: should not undef close on win32.
it's defined to rb_w32_close, otherwise handle leaks. [ruby-Bugs-2131] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8804 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog6
-rw-r--r--ext/socket/socket.c5
2 files changed, 6 insertions, 5 deletions
diff --git a/ChangeLog b/ChangeLog
index e920219116..95970bf23c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+Wed Jul 20 03:12:21 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * ext/socket/socket.c: should not undef close on win32.
+ it's defined to rb_w32_close, otherwise handle leaks.
+ [ruby-Bugs-2131]
+
Tue Jul 19 22:47:29 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
* error.c (syserr_initialize): add 1 byte for snprintf() size for
diff --git a/ext/socket/socket.c b/ext/socket/socket.c
index b512839626..096a4e8894 100644
--- a/ext/socket/socket.c
+++ b/ext/socket/socket.c
@@ -193,11 +193,6 @@ ruby_getaddrinfo__aix(nodename, servname, hints, res)
#define getaddrinfo(node,serv,hints,res) ruby_getaddrinfo__aix((node),(serv),(hints),(res))
#endif
-#ifdef HAVE_CLOSESOCKET
-#undef close
-#define close closesocket
-#endif
-
static VALUE
init_sock(sock, fd)
VALUE sock;