Make the test compile on BeOS.
author |
Bruno Haible <bruno@clisp.org> |
date |
Sun, 30 Sep 2007 15:54:30 +0200 |
parents |
b0dfb2406d1a |
children |
7b852f40a8dc |
files |
ChangeLog tests/test-getaddrinfo.c |
diffstat |
2 files changed, 10 insertions(+), 0 deletions(-)
[+]
|
line diff
--- 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.
--- a/tests/test-getaddrinfo.c
+++ b/tests/test-getaddrinfo.c
@@ -24,6 +24,11 @@
#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];