Austin English : iphplapi: Include sys/protosw.h for Net/OpenBSD.

Alexandre Julliard julliard at winehq.org
Wed Jan 21 06:40:18 CST 2009


Module: wine
Branch: master
Commit: 94021a1f425b554bf19690fa443cdb529de67566
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=94021a1f425b554bf19690fa443cdb529de67566

Author: Austin English <austinenglish at gmail.com>
Date:   Tue Jan 20 17:42:53 2009 -0600

iphplapi: Include sys/protosw.h for Net/OpenBSD.

---

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

diff --git a/configure b/configure
index 6cacb05..8f4a3d8 100755
--- a/configure
+++ b/configure
@@ -7504,6 +7504,7 @@ done
 
 
 
+
 for ac_header in \
 	AudioUnit/AudioUnit.h \
 	Carbon/Carbon.h \
@@ -7593,6 +7594,7 @@ for ac_header in \
 	sys/param.h \
 	sys/poll.h \
 	sys/prctl.h \
+	sys/protosw.h \
 	sys/ptrace.h \
 	sys/reg.h \
 	sys/resource.h \
diff --git a/configure.ac b/configure.ac
index e348d60..25e78e8 100644
--- a/configure.ac
+++ b/configure.ac
@@ -339,6 +339,7 @@ AC_CHECK_HEADERS(\
 	sys/param.h \
 	sys/poll.h \
 	sys/prctl.h \
+	sys/protosw.h \
 	sys/ptrace.h \
 	sys/reg.h \
 	sys/resource.h \
diff --git a/dlls/iphlpapi/ipstats.c b/dlls/iphlpapi/ipstats.c
index a4b5b48..f939200 100644
--- a/dlls/iphlpapi/ipstats.c
+++ b/dlls/iphlpapi/ipstats.c
@@ -97,7 +97,9 @@
 #ifdef HAVE_NETINET_UDP_VAR_H
 #include <netinet/udp_var.h>
 #endif
-
+#ifdef HAVE_SYS_PROTOSW_H
+#include <sys/protosw.h>
+#endif
 #ifdef HAVE_SYS_SYSCTL_H
 #include <sys/sysctl.h>
 #endif
diff --git a/include/config.h.in b/include/config.h.in
index 69c1fee..bb43b61 100644
--- a/include/config.h.in
+++ b/include/config.h.in
@@ -846,6 +846,9 @@
 /* Define to 1 if you have the <sys/prctl.h> header file. */
 #undef HAVE_SYS_PRCTL_H
 
+/* Define to 1 if you have the <sys/protosw.h> header file. */
+#undef HAVE_SYS_PROTOSW_H
+
 /* Define to 1 if you have the <sys/ptrace.h> header file. */
 #undef HAVE_SYS_PTRACE_H
 




More information about the wine-cvs mailing list