]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Change order of BSD-specific network includes so that they are properly picked up
authorFrancesco Chemolli <kinkie@squid-cache.org>
Mon, 2 Jun 2014 15:04:19 +0000 (17:04 +0200)
committerFrancesco Chemolli <kinkie@squid-cache.org>
Mon, 2 Jun 2014 15:04:19 +0000 (17:04 +0200)
acinclude/init.m4

index bf53a636bc8e4d5737b8776575ae9ee44d41fda3..a6ab31c353ff57b09c0d1988d3ef16a3e937be01 100644 (file)
@@ -35,12 +35,18 @@ AC_DEFUN([SQUID_DEFAULT_INCLUDES],[[
 dnl *BSD net headers
 AC_DEFUN([SQUID_BSDNET_INCLUDES],[
 SQUID_DEFAULT_INCLUDES
+#if HAVE_SYS_PARAM_H
+#include <sys/param.h>
+#endif
 #if HAVE_SYS_TIME_H
 #include <sys/time.h>
 #endif
 #if HAVE_SYS_SOCKET_H
 #include <sys/socket.h>
 #endif
+#if HAVE_NET_IF_H
+#include <net/if.h>
+#endif
 #if HAVE_NETINET_IN_H
 #include <netinet/in.h>
 #endif
@@ -50,15 +56,9 @@ SQUID_DEFAULT_INCLUDES
 #if HAVE_NETINET_IP_COMPAT_H
 #include <netinet/ip_compat.h>
 #endif
-#if HAVE_NET_IF_H
-#include <net/if.h>
-#endif
 #if HAVE_NETINET_IP_FIL_H
 #include <netinet/ip_fil.h>
 #endif
-#if HAVE_SYS_PARAM_H
-#include <sys/param.h>
-#endif
 ])
 
 dnl ===========================================================================