]> sigrok.org Git - libsigrok.git/commitdiff
scpi_tcp: Fix building on Windows.
authorMartin Ling <redacted>
Fri, 6 Dec 2013 01:14:55 +0000 (01:14 +0000)
committerBert Vermeulen <redacted>
Fri, 6 Dec 2013 01:33:05 +0000 (02:33 +0100)
hardware/common/scpi_tcp.c

index 35119243c993a9bb2cab6a17c3aab8d251230798..f12d1fa5c38df0e02003135549736563270d2184 100644 (file)
 #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. */