From fe4751381e04e9be764ae3956588f36be71af025 Mon Sep 17 00:00:00 2001 From: "matthias.ringwald@gmail.com" Date: Tue, 11 Nov 2014 20:33:00 +0000 Subject: [PATCH] add winsock2 for gethostname on win32 --- src/hci.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/hci.c b/src/hci.c index fa7636ea3..e9972f48a 100644 --- a/src/hci.c +++ b/src/hci.c @@ -51,7 +51,11 @@ #include #ifndef EMBEDDED +#ifdef _WIN32 +#include "Winsock2.h" +#else #include // gethostbyname +#endif #include #endif