[Raw Msg Headers][Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
fix for non-compiling get{addr,name}info on Cobalt
I am not sure how kosher it is but this way the thing at least compiles:
RCS file: /cvsroot/zmailer/include/libc.h,v
retrieving revision 1.4
diff -u -r1.4 libc.h
--- libc.h 1999/12/08 14:50:10 1.4
+++ libc.h 1999/12/22 16:39:14
@@ -62,6 +62,20 @@
#endif
/* Must have included <netdb.h> and possibly <netdb6.h> before this .. */
#ifdef AI_PASSIVE
+#ifndef AI_NUMERICHOST
+#define AI_NUMERICHOST 4 /* Don't use name resolution. */
+#endif
+#ifndef NI_MAXHOST
+#define NI_MAXHOST 1025
+#define NI_MAXSERV 32
+
+#define NI_NUMERICHOST 0x01
+#define NI_NUMERICSERV 0x02
+#define NI_NAMEREQD 0x04
+#define NI_NOFQDN 0x08
+#define NI_DGRAM 0x10
+#endif
+
#ifndef HAVE_GETADDRINFO
extern int _getaddrinfo_ __((const char *, const char *, const struct
addrinfo *, struct addrinfo **, FILE *));
extern int getaddrinfo __((const char *, const char *, const struct
addrinfo *, struct addrinfo **));
Eugene