mingw hide some missing includes
authorAndy Green <andy@warmcat.com>
Thu, 12 Apr 2012 02:54:22 +0000 (10:54 +0800)
committerAndy Green <andy.green@linaro.org>
Thu, 12 Apr 2012 05:30:42 +0000 (13:30 +0800)
Based on work from Radu Sorici <soriciradu@gmail.com>

Signed-off-by: Andy Green <andy.green@linaro.org>
lib/libwebsockets.h
lib/private-libwebsockets.h

index d65d8c1..87c47c7 100644 (file)
@@ -33,7 +33,7 @@ extern "C" {
 #endif
 #include <winsock2.h>
 #include <ws2tcpip.h>
-#include "websock-w32.h"
+#include "../win32port/win32helpers/websock-w32.h"
 
 #include "gettimeofday.h"
 
index b4779e6..788856a 100644 (file)
 #include <errno.h>
 #include <fcntl.h>
 #include <signal.h>
+#ifdef  __MINGW64__
+#else
+#ifdef  __MINGW32__
+#else
 #include <netdb.h>
+#endif
+#endif
 #include <stdarg.h>
 
 #include <sys/stat.h>
 
 #ifdef WIN32
-
+#ifdef  __MINGW64__                                                             
+#else                                                                           
+#ifdef  __MINGW32__                                                             
+#else
 #include <time.h >
+#endif
+#endif
 #include <winsock2.h>
 #include <ws2ipdef.h>
 #include <windows.h>