iphlpapi: include netinet/if_inarp.h for NetBSD (1/3) (try 2)

Austin English austinenglish at gmail.com
Thu Jan 22 10:50:56 CST 2009


netinet/if_inarp.h is needed to define SIN_PROXY on NetBSD

Changelog:
Try 1 wasn't a proper git diff.
Combined a couple other individual patches into a single series.

Tested both on NetBSD 4.0.1 / Ubuntu Intrepid.

Helps fix bugs 16661/16931.

-- 
-Austin
-------------- next part --------------
From 9cfc3fc15f703c0cc54bf31d808afe77ccf2c71f Mon Sep 17 00:00:00 2001
From: Austin English <austinenglish at gmail.com>
Date: Thu, 22 Jan 2009 10:44:06 -0600
Subject: [PATCH] iphlpapi: include netinet/if_inarp.h for NetBSD

---
 configure.ac            |    1 +
 dlls/iphlpapi/ipstats.c |    3 +++
 include/config.h.in     |    3 +++
 3 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/configure.ac b/configure.ac
index 1a2828d..66ad0ac 100644
--- a/configure.ac
+++ b/configure.ac
@@ -386,6 +386,7 @@ AC_CHECK_HEADERS(\
 	net/if_types.h \
 	net/route.h \
 	netinet/if_ether.h \
+	netinet/if_inarp.h \
 	netinet/in_pcb.h \
 	netinet/ip_icmp.h \
 	netinet/ip_var.h \
diff --git a/dlls/iphlpapi/ipstats.c b/dlls/iphlpapi/ipstats.c
index 5d0be71..32e24e3 100644
--- a/dlls/iphlpapi/ipstats.c
+++ b/dlls/iphlpapi/ipstats.c
@@ -64,6 +64,9 @@
 #ifdef HAVE_NETINET_IF_ETHER_H
 #include <netinet/if_ether.h>
 #endif
+#ifdef HAVE_NETINET_IF_INARP_H
+#include <netinet/if_inarp.h>
+#endif
 #ifdef HAVE_NETINET_IP_H
 #include <netinet/ip.h>
 #endif
diff --git a/include/config.h.in b/include/config.h.in
index db83db0..11dc1c6 100644
--- a/include/config.h.in
+++ b/include/config.h.in
@@ -456,6 +456,9 @@
 /* Define to 1 if you have the <netinet/if_ether.h> header file. */
 #undef HAVE_NETINET_IF_ETHER_H
 
+/* Define to 1 if you have the <netinet/if_inarp.h> header file. */
+#undef HAVE_NETINET_IF_INARP_H
+
 /* Define to 1 if you have the <netinet/in.h> header file. */
 #undef HAVE_NETINET_IN_H
 
-- 
1.5.4.3


More information about the wine-patches mailing list