On NetBSD if_type is defined as a macro in /usr/include/net/if.h.
Undefine it to avoid a conflict.

diff --git a/dlls/wsock32/socket.c b/dlls/wsock32/socket.c
index 40cdc67..f62b641 100644
--- a/dlls/wsock32/socket.c
+++ b/dlls/wsock32/socket.c
@@ -42,6 +42,9 @@
 #endif
 #include <errno.h>
 
+#ifdef __NetBSD__
+#undef if_type
+#endif
 
 /* FIXME: The rest of the socket() cdecl<->stdapi stack corruption problem
           discussed above. */