Mercurial > hg > octave-kai > gnulib-hg
changeset 12229:fbf13e47327b
test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
* tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
if it is defined.
author | Jim Meyering <meyering@redhat.com> |
---|---|
date | Tue, 03 Nov 2009 08:53:23 +0100 |
parents | 465038ef6bc4 |
children | 9f6203fafed5 |
files | ChangeLog tests/test-getaddrinfo.c |
diffstat | 2 files changed, 8 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2009-11-03 Jim Meyering <meyering@redhat.com> + + test-getaddrinfo: avoid compilation failure on FreeBSD 7.2 + * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only + if it is defined. + 2009-11-02 Eric Blake <ebb9@byu.net> mktime, timegm: share common declaration
--- a/tests/test-getaddrinfo.c +++ b/tests/test-getaddrinfo.c @@ -91,10 +91,12 @@ fail the test merely because of this. */ if (res == EAI_SERVICE) return 0; +#ifdef EAI_NODATA /* AIX reports EAI_NODATA for "https". Don't fail the test merely because of this. */ if (res == EAI_NODATA) return 0; +#endif /* Provide details if errno was set. */ if (res == EAI_SYSTEM) dbgprintf ("system error: %s\n", strerror (err));