From 092bd57e492d9c2d385e596bac3c5e50f1bb6d7b Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Tue, 14 Aug 2018 22:46:25 +0200 Subject: [PATCH] daemon: winsock2.h needed for gethostname on windows --- platform/daemon/src/daemon.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/platform/daemon/src/daemon.c b/platform/daemon/src/daemon.c index dac0b630d..1cdae59f9 100644 --- a/platform/daemon/src/daemon.c +++ b/platform/daemon/src/daemon.c @@ -54,9 +54,12 @@ #include #include #include - #include +#ifdef _WIN32 +#include "Winsock2.h" +#endif + #include "btstack.h" #include "btstack_client.h" #include "btstack_debug.h"