# HG changeset patch # User Bruno Haible # Date 1191160470 -7200 # Node ID 6c82bf4a17da031a0e25f25098442329df531444 # Parent b0dfb2406d1a9a07bcb63aa7f4feda825f5c44b9 Make the test compile on BeOS. diff -r b0dfb2406d1a -r 6c82bf4a17da ChangeLog --- 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 + + * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition. + Needed on BeOS. + 2007-09-30 Bruno Haible * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS. diff -r b0dfb2406d1a -r 6c82bf4a17da tests/test-getaddrinfo.c --- 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 #include +/* BeOS does not have AF_UNSPEC. */ +#ifndef AF_UNSPEC +# define AF_UNSPEC 0 +#endif + int simple (char *host, char *service) { char buf[BUFSIZ];