--- src/mms-common.h.orig	2011-01-17 20:58:20.000000000 +1100
+++ src/mms-common.h	2011-11-08 12:24:16.000000000 +1100
@@ -41,14 +41,16 @@
 #ifndef AI_ADDRCONFIG
 #define AI_ADDRCONFIG 0
 #endif
-#ifndef AI_NUMERICSERV
-#define AI_NUMERICSERV 0
-#endif
 #else
 #define set_errno(_err)     errno = (_err)
 #define get_errno()         errno
 #define closesocket(_s)     close(_s)
 #endif
+#if defined(_WIN32) || defined(__APPLE__)
+#ifndef AI_NUMERICSERV
+#define AI_NUMERICSERV 0
+#endif
+#endif
 
 typedef struct mms_stream_s mms_stream_t;
 struct mms_stream_s {
