]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
FreeBSD: net/if_dl.h seems to require param.h
authorAmos Jeffries <squid3@treenet.co.nz>
Wed, 17 Oct 2012 00:12:04 +0000 (18:12 -0600)
committerAmos Jeffries <squid3@treenet.co.nz>
Wed, 17 Oct 2012 00:12:04 +0000 (18:12 -0600)
configure.ac

index a26132bbe206083fc2a607fa859f7724081b2c73..5cb7506ca0fabbed58faa06892f6a0bbaae1ee23 100644 (file)
@@ -1115,7 +1115,6 @@ if test "x${enable_eui:=yes}" = "xyes" ; then
   esac
   #Iphlpapi.h check delayed after winsock2.h
   AC_CHECK_HEADERS( \
-    net/if_dl.h \
     sys/sockio.h \
     sys/param.h
   )
@@ -1127,9 +1126,12 @@ if test "x${enable_eui:=yes}" = "xyes" ; then
 #include <sys/socket.h>
 ]])
 
-  # openbsd requires sys/param.h to be included before sysctl.h
-  AC_CHECK_HEADERS(sys/sysctl.h, [], [],
-  [[#if HAVE_SYS_PARAM_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
   ]])