Make the test compile on BeOS.
[gnulib.git] / tests / test-getaddrinfo.c
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];