From acc39a3a5ff8481b3cfdee877082f4fceae59fbb Mon Sep 17 00:00:00 2001 From: codeandroid Date: Tue, 19 Dec 2017 16:31:43 +0100 Subject: [PATCH] On Windows, if WIN32_LEAN_AND_MEAN is defined, Winsock2.h is not included via Windows.h but has to be included explicitely. --- libs/wampcc/platform.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libs/wampcc/platform.cc b/libs/wampcc/platform.cc index 49d964db..0c16e51e 100644 --- a/libs/wampcc/platform.cc +++ b/libs/wampcc/platform.cc @@ -18,6 +18,9 @@ #include #else #include +#ifdef WIN32_LEAN_AND_MEAN +#include /* For gethostname */ +#endif #endif namespace wampcc