Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
authorJim Meyering <meyering@redhat.com>
Tue, 29 Apr 2008 16:48:40 +0000 (18:48 +0200)
committerJim Meyering <meyering@redhat.com>
Tue, 29 Apr 2008 16:48:40 +0000 (18:48 +0200)
* tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
by gnulib to exist and to declare e.g., inet_ntop.
Don't include "inet_ntop.h", now removed.

ChangeLog
tests/test-getaddrinfo.c

index 1ea1736..418d0bb 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2008-04-29  Jim Meyering  <meyering@redhat.com>
 
+       Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
+       * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
+       by gnulib to exist and to declare e.g., inet_ntop.
+       Don't include "inet_ntop.h", now removed.
+
        * m4/arpa_inet_h.m4: Remove trailing blanks.
 
 2008-04-29  Eric Blake  <ebb9@byu.net>
index ca7c62c..8d487cb 100644 (file)
@@ -19,7 +19,7 @@
 
 #include <config.h>
 #include "getaddrinfo.h"
-#include "inet_ntop.h"
+#include <arpa/inet.h>
 #include <stdio.h>
 #include <string.h>