heidistein / rpms / ruby

Forked from rpms/ruby 5 years ago
Clone
c6bb486
diff -pruN ruby-1.8.6-p111.orig/ext/socket/socket.c ruby-1.8.6-p111/ext/socket/socket.c
c6bb486
--- ruby-1.8.6-p111.orig/ext/socket/socket.c	2007-05-23 00:08:43.000000000 +0900
c6bb486
+++ ruby-1.8.6-p111/ext/socket/socket.c	2008-02-19 11:24:22.000000000 +0900
c6bb486
@@ -893,10 +893,10 @@ port_str(port, pbuf, len)
c6bb486
 }
c6bb486
 
c6bb486
 #ifndef NI_MAXHOST
c6bb486
-# define 1025
c6bb486
+# define NI_MAXHOST 1025
c6bb486
 #endif
c6bb486
 #ifndef NI_MAXSERV
c6bb486
-# define 32
c6bb486
+# define NI_MAXSERV 32
c6bb486
 #endif
c6bb486
 
c6bb486
 static struct addrinfo*