changeset 10013:105d94f82066

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.
author Jim Meyering <meyering@redhat.com>
date Tue, 29 Apr 2008 18:48:40 +0200
parents 2d1d93581ac2
children 09e51655729f
files ChangeLog tests/test-getaddrinfo.c
diffstat 2 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Tue Apr 29 18:00:32 2008 +0200
+++ b/ChangeLog	Tue Apr 29 18:48:40 2008 +0200
@@ -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>
--- a/tests/test-getaddrinfo.c	Tue Apr 29 18:00:32 2008 +0200
+++ b/tests/test-getaddrinfo.c	Tue Apr 29 18:48:40 2008 +0200
@@ -19,7 +19,7 @@
 
 #include <config.h>
 #include "getaddrinfo.h"
-#include "inet_ntop.h"
+#include <arpa/inet.h>
 #include <stdio.h>
 #include <string.h>