iphplapi: include netinet/if_inarp.h for NetBSD (1/2)
Austin English
austinenglish at gmail.com
Wed Jan 21 12:43:33 CST 2009
These next two patches fix the compile on NetBSD (and probably
OpenBSD, haven't checked yet). There's still some more work to be
done, but it'll take reworking a lot of configure to fix the includes.
These two patches are pretty harmless though. Tested on NetBSD
4.0.1/Ubuntu Hardy.
--
-Austin
-------------- next part --------------
rom 2275ee6a4105d5a73b555d174279078c3972187d Mon Sep 17 00:00:00 2001
From: Austin English <austinenglish at gmail.com>
Date: Wed, 21 Jan 2009 06:37:03 -0600
Subject: [PATCH] iphplapi: 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 25e78e8..a26d7d0 100644
--- a/configure.ac
+++ b/configure.ac
@@ -385,6 +385,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 f939200..5cb6ef8 100644
--- a/dlls/iphlpapi/ipstats.c
+++ b/dlls/iphlpapi/ipstats.c
@@ -61,6 +61,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 bb43b61..6f4283f 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.6.0.2
More information about the wine-patches
mailing list