From 01fd6940562a8e88d0455de650a9367951251282 Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Thu, 14 Jun 2018 19:18:06 -0400 Subject: [PATCH] Also check for and This will allow porting the raw ICMP code to IPv6. --- configure.ac | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 873f8b3a..fa877d35 100644 --- a/configure.ac +++ b/configure.ac @@ -356,7 +356,15 @@ AC_HEADER_STDC AC_HEADER_TIME AC_HEADER_RESOLV -AC_CHECK_HEADERS([arpa/inet.h ctype.h endian.h errno.h locale.h netdb.h net/ethernet.h netinet/in.h stdint.h stdlib.h string.h strings.h sys/byteorder.h sys/endian.h sys/ethernet.h sys/socket.h sys/stat.h sys/time.h sys/wait.h termios.h time.h unistd.h]) +AC_CHECK_HEADERS([arpa/inet.h ctype.h endian.h errno.h locale.h netdb.h net/ethernet.h netinet/in.h stdint.h stdlib.h string.h strings.h sys/byteorder.h sys/endian.h sys/ethernet.h sys/socket.h sys/stat.h sys/time.h sys/types.h sys/wait.h termios.h time.h unistd.h]) +AC_CHECK_HEADERS([netinet/ip6.h netinet/icmp6.h], [], [], +[#ifdef HAVE_SYS_TYPES_H +# include +#endif +#ifdef HAVE_NETINET_IN_H +# include +#endif +]) # Type checks. #