From b491d7a64fe3463ba32e639480588a7aa03ac1ae Mon Sep 17 00:00:00 2001 From: knu Date: Tue, 31 Dec 2002 11:17:40 +0000 Subject: * 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 --- ext/socket/addrinfo.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ext') 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() -- cgit v1.2.3