BeOS portability.
authorBruno Haible <bruno@clisp.org>
Mon, 28 Aug 2006 14:34:07 +0000 (14:34 +0000)
committerBruno Haible <bruno@clisp.org>
Mon, 28 Aug 2006 14:34:07 +0000 (14:34 +0000)
lib/ChangeLog
lib/getaddrinfo.c

index c6b9d5f..437c586 100644 (file)
@@ -1,3 +1,9 @@
+2006-08-26  Bruno Haible  <bruno@clisp.org>
+            Simon Josefsson  <jas@extundo.com>
+
+       BeOS portability.
+       * getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
+
 2006-08-28  Bruno Haible  <bruno@clisp.org>
 
        * c-strstr.h: New file, from GNU gettext.
index 9003abf..3c6992a 100644 (file)
 #include "snprintf.h"
 #include "strdup.h"
 
+/* BeOS has AF_INET, but not PF_INET.  */
+#ifndef PF_INET
+# define PF_INET AF_INET
+#endif
+/* BeOS also lacks PF_UNSPEC.  */
+#ifndef PF_UNSPEC
+# define PF_UNSPEC 0
+#endif
+
 #if defined _WIN32 || defined __WIN32__
 # define WIN32_NATIVE
 #endif