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 d6a6e5760e3a7a3286de04580074c3c1ac5811fb..443ad769044ea2b424f7627124b787dd6bb35880 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+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.
index c18c4b9244eee386eddfa318ac32453e808c8837..c69dadb0dccf198b96f064eb26e306b340a877db 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];