From 1cb54abea63878c65fc1397766f161ea9e526453 Mon Sep 17 00:00:00 2001 From: ocean Date: Fri, 21 Oct 2005 06:46:41 +0000 Subject: * intern.h, struct.c (rb_struct_iv_get): constified. * marshal.c: avoid one VC++6 warning for implicit conversion from int to char. * ruby.h: ANSI styled. * bcc32/Makefile.sub (HAVE_HYPOT): added. * ext/socket/extconf.rb: BeOS is only one platform should call closesocket, so check __BEOS__ macro directly. (I was worried accidently HAVE_CLOSESOCKET is defined on windows again because it has it) * ext/socket/{getaddrinfo.c,socket.c}: ditto. ... these are all cosmetic changes. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@9435 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/socket/socket.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext/socket/socket.c') diff --git a/ext/socket/socket.c b/ext/socket/socket.c index 6a787629f..1037c8546 100644 --- a/ext/socket/socket.c +++ b/ext/socket/socket.c @@ -193,7 +193,7 @@ ruby_getaddrinfo__aix(nodename, servname, hints, res) #define getaddrinfo(node,serv,hints,res) ruby_getaddrinfo__aix((node),(serv),(hints),(res)) #endif -#ifdef HAVE_CLOSESOCKET +#ifdef __BEOS__ #undef close #define close closesocket #endif -- cgit