]> sigrok.org Git - libsigrok.git/blobdiff - hardware/common/scpi_tcp.c
scpi_tcp: Fix building on Windows.
[libsigrok.git] / 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. */