aboutsummaryrefslogtreecommitdiff
path: root/win32port
diff options
context:
space:
mode:
authorStephan Eberle <stephaneberle9@gmail.com>2016-04-26 22:28:08 +0200
committerAndy Green <andy@warmcat.com>2016-04-27 07:34:43 +0800
commit8087959acf23897d044707c25e1f8fcb8235c022 (patch)
tree273fca20d92768e0d633d6e7aa4ae33dd0203bf4 /win32port
parentf14f7237dcd0e63d12495246f6346e43773afd37 (diff)
downloadlibwebsockets-8087959acf23897d044707c25e1f8fcb8235c022.tar.gz
Fixed build failure under Visual Studio 14 2015
Diffstat (limited to 'win32port')
-rw-r--r--win32port/win32helpers/gettimeofday.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/win32port/win32helpers/gettimeofday.h b/win32port/win32helpers/gettimeofday.h
index 00380623..6208dccc 100644
--- a/win32port/win32helpers/gettimeofday.h
+++ b/win32port/win32helpers/gettimeofday.h
@@ -7,7 +7,9 @@
#define DELTA_EPOCH_IN_MICROSECS 11644473600000000ULL
#endif
-#include <winsock2.h>
+#ifdef LWS_MINGW_SUPPORT
+ #include <winsock2.h>
+#endif
#ifndef _TIMEZONE_DEFINED
struct timezone