Make the test compile on BeOS.
authorBruno Haible <bruno@clisp.org>
Sun, 30 Sep 2007 13:54:30 +0000 (15:54 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 30 Sep 2007 13:54:30 +0000 (15:54 +0200)
ChangeLog
tests/test-getaddrinfo.c

index d6a6e57..443ad76 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2007-09-30  Bruno Haible  <bruno@clisp.org>
 
+       * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
+       Needed on BeOS.
+
+2007-09-30  Bruno Haible  <bruno@clisp.org>
+
        * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
 
 2007-09-29  Bruno Haible  <bruno@clisp.org>
index c18c4b9..c69dadb 100644 (file)
 #include <stdio.h>
 #include <string.h>
 
+/* BeOS does not have AF_UNSPEC.  */
+#ifndef AF_UNSPEC
+# define AF_UNSPEC 0
+#endif
+
 int simple (char *host, char *service)
 {
   char buf[BUFSIZ];