Both mDNS.c and mDNSWin32.h define the UDPSocket_struct type, so #define that name...
authorsherscher@apple.com <sherscher@apple.com@214c2c4a-bf3b-4dcf-9390-e4dd3010487d>
Thu, 10 Sep 2009 04:41:22 +0000 (04:41 +0000)
committersherscher@apple.com <sherscher@apple.com@214c2c4a-bf3b-4dcf-9390-e4dd3010487d>
Thu, 10 Sep 2009 04:41:22 +0000 (04:41 +0000)
git-svn-id: http://svn.macosforge.org/repository/mDNSResponder/trunk@6661 214c2c4a-bf3b-4dcf-9390-e4dd3010487d

mDNSPosix/NetMonitor.c

index 867e75d..7a29fc7 100644 (file)
@@ -46,6 +46,9 @@
 #include <time.h>                      // For "struct tm" etc.
 #include <signal.h>                    // For SIGINT, SIGTERM
 #if defined(WIN32)
+// Both mDNS.c and mDNSWin32.h declare UDPSocket_struct type resulting in a compile-time error, so 
+// trick the compiler when including mDNSWin32.h
+#      define UDPSocket_struct _UDPSocket_struct
 #      include <mDNSEmbeddedAPI.h>
 #      include <mDNSWin32.h>
 #      include <uds_daemon.h>