summaryrefslogtreecommitdiff
path: root/net/mtr/patches/patch-aa
blob: 0c9d421f01faf1ad276332c5b131a71f754baae1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
$NetBSD: patch-aa,v 1.10 2010/06/05 14:50:12 wiz Exp $

--- configure.orig	2008-08-19 20:11:50.000000000 +0200
+++ configure
@@ -6176,7 +6176,7 @@ fi
 done
 
 
-for ac_header in sys/xti.h
+for ac_header in socket.h sys/socket.h sys/xti.h
 do
 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
@@ -7834,7 +7834,12 @@ cat >>conftest.$ac_ext <<_ACEOF
 /* end confdefs.h.  */
 
 #include <netinet/in.h>
-
+#ifdef HAVE_SOCKET_H
+#include <socket.h>
+#endif
+#ifdef HAVE_SYS_SOCKET_H
+#include <sys/socket.h>
+#endif
 
 typedef socklen_t ac__type_new_;
 int