diff options
author | Andy Green <andy@warmcat.com> | 2012-04-12 10:54:22 +0800 |
---|---|---|
committer | Andy Green <andy.green@linaro.org> | 2012-04-12 13:30:42 +0800 |
commit | 2a480ea83c19a5b1b064daba559759c23c88ce95 (patch) | |
tree | 9c71ccb3bb960836ae86c1179471c76daa079f88 | |
parent | 0dbef49e548eef4a8710cda5f9eff38e1a8f2817 (diff) |
mingw hide some missing includes
Based on work from Radu Sorici <soriciradu@gmail.com>
Signed-off-by: Andy Green <andy.green@linaro.org>
-rw-r--r-- | lib/libwebsockets.h | 2 | ||||
-rw-r--r-- | lib/private-libwebsockets.h | 13 |
2 files changed, 13 insertions, 2 deletions
diff --git a/lib/libwebsockets.h b/lib/libwebsockets.h index d65d8c1..87c47c7 100644 --- a/lib/libwebsockets.h +++ b/lib/libwebsockets.h @@ -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" diff --git a/lib/private-libwebsockets.h b/lib/private-libwebsockets.h index b4779e6..788856a 100644 --- a/lib/private-libwebsockets.h +++ b/lib/private-libwebsockets.h @@ -28,14 +28,25 @@ #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> |