1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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
This commit is contained in:
knu 2002-12-31 11:17:40 +00:00
parent b18e1a0b4a
commit b491d7a64f
2 changed files with 8 additions and 0 deletions

View file

@ -1,3 +1,9 @@
Tue Dec 31 20:16:37 2002 Akinori MUSHA <knu@iDaemons.org>
* 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 <knu@iDaemons.org> Tue Dec 31 20:07:49 2002 Akinori MUSHA <knu@iDaemons.org>
* ext/tcltklib/extconf.rb (find_tcl, find_tk): Look for both * ext/tcltklib/extconf.rb (find_tcl, find_tk): Look for both

View file

@ -115,8 +115,10 @@
/* /*
* Constants for getnameinfo() * Constants for getnameinfo()
*/ */
#ifndef NI_MAXHOST
#define NI_MAXHOST 1025 #define NI_MAXHOST 1025
#define NI_MAXSERV 32 #define NI_MAXSERV 32
#endif
/* /*
* Flag values for getnameinfo() * Flag values for getnameinfo()