summaryrefslogtreecommitdiff
path: root/net/socat/patches/patch-configure
blob: e2b20b2122e23301b86ee5ec6b4c3e2f6d57f9ab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
$NetBSD: patch-configure,v 1.2 2014/09/07 23:24:56 rodent Exp $

Include net/if.h for netinet/if_ether.h

--- configure.orig	2014-03-09 19:57:51.000000000 +0000
+++ configure
@@ -4671,7 +4671,11 @@ fi
 
 fi
 if test "$WITH_INTERFACE"; then
-  ac_fn_c_check_header_mongrel "$LINENO" "netinet/if_ether.h" "ac_cv_header_netinet_if_ether_h" "$ac_includes_default"
+  ac_fn_c_check_header_mongrel "$LINENO" "netinet/if_ether.h" "ac_cv_header_netinet_if_ether_h" "$ac_includes_default
+	#if HAVE_NET_IF_H
+	#include <net/if.h>
+	#endif
+"
 if test "x$ac_cv_header_netinet_if_ether_h" = xyes; then :
   $as_echo "#define HAVE_NETINET_IF_ETHER_H 1" >>confdefs.h