bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] Avoid new segfault in getaddrinfo test


From: Jim Meyering
Subject: [PATCH] Avoid new segfault in getaddrinfo test
Date: Tue, 29 Apr 2008 18:51:37 +0200

Hi Simon

Ok to apply?
Without it, I'd get this:
  FAIL: test-getaddrinfo
with a segfault that comes from using inet_ntop with no declaration.

        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.

diff --git a/tests/test-getaddrinfo.c b/tests/test-getaddrinfo.c
index ca7c62c..8d487cb 100644
--- a/tests/test-getaddrinfo.c
+++ b/tests/test-getaddrinfo.c
@@ -19,7 +19,7 @@

 #include <config.h>
 #include "getaddrinfo.h"
-#include "inet_ntop.h"
+#include <arpa/inet.h>
 #include <stdio.h>
 #include <string.h>

--
1.5.5.1.68.gbdcd8




reply via email to

[Prev in Thread] Current Thread [Next in Thread]