mirror of
https://github.com/ruby/ruby.git
synced 2025-08-23 13:04:13 +02:00
* 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:
parent
1727355a22
commit
750cb61e65
2 changed files with 8 additions and 2 deletions
|
@ -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*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue