]> 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, 10 Oct 2012 01:50:28 +0000 (19:50 -0600)
committerAmos Jeffries <squid3@treenet.co.nz>
Wed, 10 Oct 2012 01:50:28 +0000 (19:50 -0600)
configure.ac

index 072f58a25d793c88d1b5d87f230c67651f295b15..277a0b3d14b643ac402598352b6db7b4d5aef65f 100644 (file)
@@ -1140,7 +1140,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
   )
@@ -1152,9 +1151,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
   ]])