* 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/trunk@18450 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2008-08-09 04:35:13 +00:00
parent 1727355a22
commit 750cb61e65
2 changed files with 8 additions and 2 deletions

View file

@ -920,10 +920,10 @@ port_str(VALUE port, char *pbuf, size_t len)
}
#ifndef NI_MAXHOST
# define 1025
# define NI_MAXHOST 1025
#endif
#ifndef NI_MAXSERV
# define 32
# define NI_MAXSERV 32
#endif
static struct addrinfo*