diff options
author | knu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-12-31 11:17:40 +0000 |
---|---|---|
committer | knu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-12-31 11:17:40 +0000 |
commit | b491d7a64fe3463ba32e639480588a7aa03ac1ae (patch) | |
tree | e18f9e038bcf75320f0a4b639907a44ab33a1926 | |
parent | b18e1a0b4a56d7f2bfe4265ca9d0e70cd234e1cf (diff) |
* ext/socket/addrinfo.h (NI_MAXHOST): Define NI_MAXHOST and
NI_MAXHOST only if they are not defined yet. This fixes build
such platforms as OpenBSD.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3254 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | ext/socket/addrinfo.h | 2 |
2 files changed, 8 insertions, 0 deletions
@@ -1,3 +1,9 @@ +Tue Dec 31 20:16:37 2002 Akinori MUSHA <[email protected]> + + * ext/socket/addrinfo.h (NI_MAXHOST): Define NI_MAXHOST and + NI_MAXHOST only if they are not defined yet. This fixes build + such platforms as OpenBSD. + Tue Dec 31 20:07:49 2002 Akinori MUSHA <[email protected]> * ext/tcltklib/extconf.rb (find_tcl, find_tk): Look for both diff --git a/ext/socket/addrinfo.h b/ext/socket/addrinfo.h index 5beea2cec6..a22615ee00 100644 --- a/ext/socket/addrinfo.h +++ b/ext/socket/addrinfo.h @@ -115,8 +115,10 @@ /* * Constants for getnameinfo() */ +#ifndef NI_MAXHOST #define NI_MAXHOST 1025 #define NI_MAXSERV 32 +#endif /* * Flag values for getnameinfo() |