$NetBSD: patch-ad,v 1.2 2004/03/08 23:55:24 minskim Exp $ --- conf/configure.in.nse.orig Mon Jan 12 18:57:50 2004 +++ conf/configure.in.nse @@ -11,7 +11,24 @@ dnl AC_MSG_CHECKING([for struct ether_header]) AC_TRY_COMPILE([ #include +#ifdef HAVE_SYS_TYPES_H +#include +#endif +#ifdef HAVE_SYS_SOCKET_H +#include +#endif +#ifdef HAVE_NETINET_IN_H +#include +#endif +#ifdef HAVE_NET_IF_H +#include +#endif +#ifdef HAVE_NET_ETHERNET_H #include +#endif +#ifdef HAVE_NETINET_IF_ETHER_H +#include +#endif ], [ int main() { @@ -33,7 +50,24 @@ dnl AC_MSG_CHECKING([for struct ether_addr]) AC_TRY_COMPILE([ #include +#ifdef HAVE_SYS_TYPES_H +#include +#endif +#ifdef HAVE_SYS_SOCKET_H +#include +#endif +#ifdef HAVE_NETINET_IN_H +#include +#endif +#ifdef HAVE_NET_IF_H +#include +#endif +#ifdef HAVE_NET_ETHERNET_H #include +#endif +#ifdef HAVE_NETINET_IF_ETHER_H +#include +#endif ], [ int main() { @@ -100,6 +134,9 @@ dnl AC_MSG_CHECKING([for BSD compliant tcphdr]) AC_TRY_COMPILE([ #include +#ifdef HAVE_SYS_TYPES_H +#include +#endif #include ], [ int main() @@ -140,7 +177,6 @@ dnl dnl Check for pcap library dnl AC_CHECK_LIB(pcap,main,[V_LIB="$V_LIB -lpcap" pcap=yes]) -V_INCLUDES="$V_INCLUDES -I/usr/include/pcap" dnl