Based on work from Radu Sorici <soriciradu@gmail.com>
Signed-off-by: Andy Green <andy.green@linaro.org>
#endif
#include <winsock2.h>
#include <ws2tcpip.h>
-#include "websock-w32.h"
+#include "../win32port/win32helpers/websock-w32.h"
#include "gettimeofday.h"
#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>