]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
FreeBSD: net/if_dl.h seems to require param.h
authorAmos Jeffries <squid3@treenet.co.nz>
Tue, 9 Oct 2012 01:03:20 +0000 (19:03 -0600)
committerAmos Jeffries <squid3@treenet.co.nz>
Tue, 9 Oct 2012 01:03:20 +0000 (19:03 -0600)
configure.ac

index 20f7e470791aa0923710647f5de0bff32faca747..8606d16bf2d98321aac6acefa982f334f75612c2 100644 (file)
@@ -1144,7 +1144,6 @@ if test "x${enable_eui:=yes}" = "xyes" ; then
   #Iphlpapi.h check delayed after winsock2.h
   AC_CHECK_HEADERS( \
     windows.h \
-    net/if_dl.h \
     sys/sockio.h \
     sys/param.h,
   [], [], [[
@@ -1161,8 +1160,11 @@ include <windows.h>
 #include <sys/socket.h>
 ]])
 
-  # OpenBSD, FreeBSD and NetBSD requires sys/param.h to be included before sysctl.h
-  AC_CHECK_HEADERS(sys/sysctl.h, [], [], [[
+  # OpenBSD, FreeBSD and NetBSD requires sys/param.h to be included before sysctl.h and net/if_dl.h
+  AC_CHECK_HEADERS( \
+    net/if_dl.h \
+    sys/sysctl.h,
+  [], [], [[
 #if HAVE_SYS_PARAM_H
 #include <sys/param.h>
 #endif