Mercurial > gnulib
changeset 9241:6c82bf4a17da
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 wrap: on
line diff
--- a/ChangeLog Sun Sep 30 13:15:40 2007 +0200 +++ b/ChangeLog Sun Sep 30 15:54:30 2007 +0200 @@ -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 Sun Sep 30 13:15:40 2007 +0200 +++ b/tests/test-getaddrinfo.c Sun Sep 30 15:54:30 2007 +0200 @@ -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];