1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* ext/socket/socket.c: sorry, BeOS also uses HAVE_CLOSESOCKET,

so reverted.

* ext/socket/extconf.rb: should not define HAVE_CLOSESOCKET
  on windows.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8806 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
ocean 2005-07-19 19:04:46 +00:00
parent aee718d32a
commit 81ad8ec096
3 changed files with 13 additions and 1 deletions

View file

@ -1,3 +1,11 @@
Wed Jul 20 03:58:52 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
* ext/socket/socket.c: sorry, BeOS also uses HAVE_CLOSESOCKET,
so reverted.
* ext/socket/extconf.rb: should not define HAVE_CLOSESOCKET
on windows.
Wed Jul 20 03:12:21 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
* ext/socket/socket.c: should not undef close() on win32.

View file

@ -4,7 +4,6 @@ case RUBY_PLATFORM
when /(ms|bcc)win32|mingw/
test_func = "WSACleanup"
have_library("ws2_32", "WSACleanup")
have_func("closesocket")
when /cygwin/
test_func = "socket"
when /beos/

View file

@ -193,6 +193,11 @@ 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;