]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Summary: failure to detect <sys/mount.h> on NetBSD
authorrobertc <>
Sat, 30 Aug 2003 15:08:21 +0000 (15:08 +0000)
committerrobertc <>
Sat, 30 Aug 2003 15:08:21 +0000 (15:08 +0000)
Keywords:

On NetBSD-current, squid3-HEAD fails to detect sys/mount.h.
The attached patch to acinclude.m4 fixes it.

* need to include <net/if.h> before, not after, <netinet/ip_fil.h>

* neet to include <sys/time.h> before <netinet/ip_fil.h>.

For some reason, these problems do not prevent "configure" from detecting
<netinet/ip_fil.h>, but do prevent configure fron detecting <sys/mount.h>.

acinclude.m4

index 9b0c809d56110f41ba8e9add4f52bd12fb61ae2d..7ccb0592e4454fd81cb02d3ce9d427c53a373a93 100644 (file)
@@ -33,6 +33,9 @@ SQUID_DEFAULT_INCLUDES
 dnl *BSD net headers
 AC_DEFUN(SQUID_BSDNET_INCLUDES,[
 SQUID_DEFAULT_INCLUDES
+#if HAVE_SYS_TIME_H
+#include <sys/time.h>
+#endif
 #if HAVE_SYS_SOCKET_H
 #include <sys/socket.h>
 #endif
@@ -42,12 +45,12 @@ SQUID_DEFAULT_INCLUDES
 #if HAVE_NETINET_IP_COMPAT_H
 #include <netinet/ip_compat.h>
 #endif
-#if HAVE_NETINET_IP_FIL_H
-#include <netinet/ip_fil.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