add winsock2 for gethostname on win32

This commit is contained in:
matthias.ringwald@gmail.com 2014-11-11 20:33:00 +00:00
parent b52eaea5b4
commit fe4751381e

View File

@ -51,7 +51,11 @@
#include <stdio.h>
#ifndef EMBEDDED
#ifdef _WIN32
#include "Winsock2.h"
#else
#include <unistd.h> // gethostbyname
#endif
#include <btstack/version.h>
#endif