diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-08-09 04:35:13 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-08-09 04:35:13 +0000 |
commit | 69aeb09eb8e9a04ee4848ccda0c7d1aef22754b2 (patch) | |
tree | 2dc30ebabc0dff358a4375de2f42335033960403 | |
parent | a6267031f2a56b2548c4a3f62648c4013f424fe3 (diff) |
* stable/ext/socket/socket.c (NI_MAXHOST, NI_MAXSERV): fixed invalid
preprocessor directives. a patch from Peter Bowen at
[ruby-core:18211].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@18450 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | ext/socket/socket.c | 4 |
2 files changed, 8 insertions, 2 deletions
@@ -1,3 +1,9 @@ +Sat Aug 9 13:35:08 2008 Nobuyoshi Nakada <[email protected]> + + * stable/ext/socket/socket.c (NI_MAXHOST, NI_MAXSERV): fixed invalid + preprocessor directives. a patch from Peter Bowen at + [ruby-core:18211]. + Fri Aug 8 10:53:52 2008 Tanaka Akira <[email protected]> * lib/resolv.rb: randomize source port and transaction id. diff --git a/ext/socket/socket.c b/ext/socket/socket.c index c1a7247a38..ad1e14d5aa 100644 --- a/ext/socket/socket.c +++ b/ext/socket/socket.c @@ -893,10 +893,10 @@ port_str(port, pbuf, len) } #ifndef NI_MAXHOST -# define 1025 +# define NI_MAXHOST 1025 #endif #ifndef NI_MAXSERV -# define 32 +# define NI_MAXSERV 32 #endif static struct addrinfo* |