[Raw Msg Headers][Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

getaddrinfo/getnameinfo fix for libc5



OK, maybe this diff looks better?  Without it, getaddrinfo and
getnameinfo would not compile on Cobalt.

Index: libc/getnameinfo.c
===================================================================
RCS file: /cvsroot/zmailer/libc/getnameinfo.c,v
retrieving revision 1.3
diff -u -r1.3 getnameinfo.c
--- getnameinfo.c	1999/12/22 17:26:40	1.3
+++ getnameinfo.c	1999/12/27 10:56:21
@@ -41,7 +41,7 @@
 #include <sys/utsname.h>
 
 #include <netdb.h>
-#if !defined(EAI_AGAIN) || !defined(AI_NUMERICHOST)
+#if !defined(EAI_AGAIN) || !defined(NI_NUMERICHOST)
 #include "netdb6.h"
 #endif
 
Index: include/netdb6.h
===================================================================
RCS file: /cvsroot/zmailer/include/netdb6.h,v
retrieving revision 1.2
diff -u -r1.2 netdb6.h
--- netdb6.h	1999/12/19 00:33:21	1.2
+++ netdb6.h	1999/12/27 10:56:21
@@ -18,7 +18,10 @@
 };
 
 #define AI_PASSIVE     1       /* Socket address is intended for `bind'.  */
+#endif
+#ifndef AI_CANONNAME
 #define AI_CANONNAME   2       /* Request for canonical name.  */
+#endif
 #ifndef AI_NUMERICHOST
 #define AI_NUMERICHOST 4       /* Don't use name resolution.  */
 #endif
@@ -47,6 +50,4 @@
 #define NI_NAMEREQD	0x04
 #define NI_NOFQDN	0x08
 #define NI_DGRAM	0x10
-#endif
-
 #endif