Check for netinet/ip.h after including netinet/in.h.
authorWayne Davison <wayne@opencoder.net>
Sun, 31 Jan 2021 19:11:07 +0000 (11:11 -0800)
committerWayne Davison <wayne@opencoder.net>
Sun, 31 Jan 2021 19:11:07 +0000 (11:11 -0800)
configure.ac

index b81cfe3306ed9ca34b5307722b61b09c0e289ff0..af1874e5caee73c12db5bdc2acb681c5aa64e3a1 100644 (file)
@@ -12,8 +12,9 @@ AC_CHECK_HEADERS(sys/fcntl.h sys/select.h fcntl.h sys/time.h sys/unistd.h \
     sys/un.h sys/attr.h arpa/inet.h arpa/nameser.h locale.h sys/types.h \
     netdb.h malloc.h float.h limits.h iconv.h libcharset.h langinfo.h mcheck.h \
     sys/acl.h acl/libacl.h attr/xattr.h sys/xattr.h sys/extattr.h dl.h \
-    popt.h popt/popt.h linux/falloc.h netinet/in_systm.h netinet/ip.h \
+    popt.h popt/popt.h linux/falloc.h netinet/in_systm.h \
     zlib.h xxhash.h openssl/md4.h openssl/md5.h zstd.h lz4.h sys/file.h)
+AC_CHECK_HEADERS([netinet/ip.h], [], [], [[#include <netinet/in.h>]])
 AC_HEADER_MAJOR_FIXED
 
 AC_CONFIG_MACRO_DIR([m4])