]> sigrok.org Git - libserialport.git/commitdiff
windows: Don't try to include <unistd.h>.
authorMartin Ling <redacted>
Sun, 29 Dec 2019 13:22:00 +0000 (14:22 +0100)
committerMartin Ling <redacted>
Thu, 23 Jan 2020 03:35:47 +0000 (03:35 +0000)
This should enable compatibility with MSVC.

libserialport_internal.h

index 49f36d77b9d256713fba90ddf28c3f06d7df45f5..1cb477c55387df0e1e9bf123fd1c5e6db6725625 100644 (file)
@@ -34,7 +34,6 @@
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <fcntl.h>
-#include <unistd.h>
 #include <stdlib.h>
 #include <errno.h>
 #include <stdio.h>
@@ -63,6 +62,7 @@
 #include <sys/time.h>
 #include <time.h>
 #include <poll.h>
+#include <unistd.h>
 #endif
 #ifdef __APPLE__
 #include <CoreFoundation/CoreFoundation.h>