[PATCH] ws2_32: Fix compile on OS X.

Philippe Groarke philippe.groarke at gmail.com
Sun Apr 5 14:28:00 CDT 2015


If HAS_IPX isn't defined, compilation will throw error since
WS_IPX_* aren't declared.
---
 dlls/ws2_32/socket.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/dlls/ws2_32/socket.c b/dlls/ws2_32/socket.c
index 09c8416..bc4d40a 100644
--- a/dlls/ws2_32/socket.c
+++ b/dlls/ws2_32/socket.c
@@ -365,6 +365,7 @@ static inline const char *debugstr_sockopt(int level, int optname)
         DEBUG_SOCKLEVEL(WS_NSPROTO_IPX);
         switch(optname)
         {
+#ifdef HAS_IPX
             DEBUG_SOCKOPT(WS_IPX_PTYPE);
             DEBUG_SOCKOPT(WS_IPX_FILTERPTYPE);
             DEBUG_SOCKOPT(WS_IPX_DSTYPE);
@@ -372,6 +373,7 @@ static inline const char *debugstr_sockopt(int level, int optname)
             DEBUG_SOCKOPT(WS_IPX_MAXSIZE);
             DEBUG_SOCKOPT(WS_IPX_ADDRESS);
             DEBUG_SOCKOPT(WS_IPX_MAX_ADAPTER_NUM);
+#endif
         }
         break;
 
-- 
2.3.1




More information about the wine-patches mailing list