mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-08-04 02:08:49 -04:00
73 lines
1.5 KiB
Plaintext
73 lines
1.5 KiB
Plaintext
$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 <stdio.h>
|
|
+#ifdef HAVE_SYS_TYPES_H
|
|
+#include <sys/types.h>
|
|
+#endif
|
|
+#ifdef HAVE_SYS_SOCKET_H
|
|
+#include <sys/socket.h>
|
|
+#endif
|
|
+#ifdef HAVE_NETINET_IN_H
|
|
+#include <netinet/in.h>
|
|
+#endif
|
|
+#ifdef HAVE_NET_IF_H
|
|
+#include <net/if.h>
|
|
+#endif
|
|
+#ifdef HAVE_NET_ETHERNET_H
|
|
#include <net/ethernet.h>
|
|
+#endif
|
|
+#ifdef HAVE_NETINET_IF_ETHER_H
|
|
+#include <netinet/if_ether.h>
|
|
+#endif
|
|
], [
|
|
int main()
|
|
{
|
|
@@ -33,7 +50,24 @@ dnl
|
|
AC_MSG_CHECKING([for struct ether_addr])
|
|
AC_TRY_COMPILE([
|
|
#include <stdio.h>
|
|
+#ifdef HAVE_SYS_TYPES_H
|
|
+#include <sys/types.h>
|
|
+#endif
|
|
+#ifdef HAVE_SYS_SOCKET_H
|
|
+#include <sys/socket.h>
|
|
+#endif
|
|
+#ifdef HAVE_NETINET_IN_H
|
|
+#include <netinet/in.h>
|
|
+#endif
|
|
+#ifdef HAVE_NET_IF_H
|
|
+#include <net/if.h>
|
|
+#endif
|
|
+#ifdef HAVE_NET_ETHERNET_H
|
|
#include <net/ethernet.h>
|
|
+#endif
|
|
+#ifdef HAVE_NETINET_IF_ETHER_H
|
|
+#include <netinet/if_ether.h>
|
|
+#endif
|
|
], [
|
|
int main()
|
|
{
|
|
@@ -100,6 +134,9 @@ dnl
|
|
AC_MSG_CHECKING([for BSD compliant tcphdr])
|
|
AC_TRY_COMPILE([
|
|
#include <stdio.h>
|
|
+#ifdef HAVE_SYS_TYPES_H
|
|
+#include <sys/types.h>
|
|
+#endif
|
|
#include <netinet/tcp.h>
|
|
], [
|
|
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
|