changeset 7211:11f1d00cce73

BeOS portability.
author Bruno Haible <bruno@clisp.org>
date Mon, 28 Aug 2006 14:34:07 +0000
parents d75c60e05cde
children 232ee448d272
files lib/ChangeLog lib/getaddrinfo.c
diffstat 2 files changed, 15 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lib/ChangeLog
+++ b/lib/ChangeLog
@@ -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.
--- a/lib/getaddrinfo.c
+++ b/lib/getaddrinfo.c
@@ -42,6 +42,15 @@
 #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