scpi_tcp: Fix building on Windows.

This commit is contained in:
Martin Ling 2013-12-06 01:14:55 +00:00 committed by Bert Vermeulen
parent b9a5614dbf
commit 987a053084
1 changed files with 5 additions and 0 deletions

View File

@ -23,10 +23,15 @@
#include <glib.h>
#include <string.h>
#include <unistd.h>
#ifdef _WIN32
#include <winsock2.h>
#include <ws2tcpip.h>
#else
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <netdb.h>
#endif
#include <errno.h>
/* Message logging helpers with subsystem-specific prefix string. */