Changeset: 921bc5afdded for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=921bc5afdded
Modified Files:
        clients/mapiclient/mnc.c
Branch: default
Log Message:

mnc: guard includes better

Try to fix compilation on Windows, thanks Stefan for the hint.


diffs (20 lines):

diff --git a/clients/mapiclient/mnc.c b/clients/mapiclient/mnc.c
--- a/clients/mapiclient/mnc.c
+++ b/clients/mapiclient/mnc.c
@@ -40,9 +40,14 @@
 #ifdef HAVE_PTHREAD_H
 #include <pthread.h>
 #endif
-#ifdef HAVE_GETADDRINFO
-# include <sys/types.h>
+#include <sys/types.h>
+#ifdef HAVE_SYS_SOCKET_H
 # include <sys/socket.h>
+#endif
+#ifdef NATIVE_WIN32
+# include <winsock.h>
+#endif
+#ifdef HAVE_NETDB_H
 # include <netdb.h>
 #endif
 
_______________________________________________
Checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list

Reply via email to