iphlpapi: fix Solaris build error due to ERR redefinition

Thomas Kho tkho at ucla.edu
Thu Feb 26 04:56:39 CST 2009


wine/debug.h is included too early and does the undef-redef of ERR before sys/reg.h gets included.

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

diff --git a/dlls/iphlpapi/ipstats.c b/dlls/iphlpapi/ipstats.c
index b112793..ada1430 100644
--- a/dlls/iphlpapi/ipstats.c
+++ b/dlls/iphlpapi/ipstats.c
@@ -21,7 +21,6 @@
 
 #include "config.h"
 #include "wine/port.h"
-#include "wine/debug.h"
 
 #include <stdarg.h>
 #include <stdio.h>
@@ -124,6 +123,8 @@
 #include "ifenum.h"
 #include "ipstats.h"
 
+#include "wine/debug.h"
+
 #ifndef HAVE_NETINET_TCP_FSM_H
 #define TCPS_ESTABLISHED  1
 #define TCPS_SYN_SENT     2
-- 
1.5.6.5




More information about the wine-patches mailing list