iphplapi: reorder includes for NetBSD (2/2)

Austin English austinenglish at gmail.com
Wed Jan 21 12:44:36 CST 2009


tcp_var has some undefined references unless ip_var is included first.
Tested on NetBSD 4.0.1/Ubuntu Intrepid.

-- 
-Austin
-------------- next part --------------
From ed1638363683bc6f73b0c24c9ce4167253323d3a Mon Sep 17 00:00:00 2001
From: Austin English <austinenglish at gmail.com>
Date: Wed, 21 Jan 2009 06:38:17 -0600
Subject: [PATCH] iphplapi: reorder some includes for NetBSD

---
 dlls/iphlpapi/ipstats.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/dlls/iphlpapi/ipstats.c b/dlls/iphlpapi/ipstats.c
index 5cb6ef8..5ce6312 100644
--- a/dlls/iphlpapi/ipstats.c
+++ b/dlls/iphlpapi/ipstats.c
@@ -70,6 +70,9 @@
 #ifdef HAVE_NETINET_TCP_H
 #include <netinet/tcp.h>
 #endif
+#ifdef HAVE_NETINET_IP_VAR_H
+#include <netinet/ip_var.h>
+#endif
 #ifdef HAVE_NETINET_TCP_FSM_H
 #include <netinet/tcp_fsm.h>
 #endif
@@ -91,9 +94,6 @@
 #ifdef HAVE_NETINET_ICMP_VAR_H
 #include <netinet/icmp_var.h>
 #endif
-#ifdef HAVE_NETINET_IP_VAR_H
-#include <netinet/ip_var.h>
-#endif
 #ifdef HAVE_NETINET_UDP_H
 #include <netinet/udp.h>
 #endif
--
1.6.0.2


More information about the wine-patches mailing list