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>.
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
#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