1
0
mirror of git://sigrok.org/libserialport synced 2023-08-10 21:13:24 +03:00

windows: Don't try to include <unistd.h>.

This should enable compatibility with MSVC.
This commit is contained in:
Martin Ling 2019-12-29 14:22:00 +01:00
parent a9900f8b64
commit fdbb55ae1e

View File

@ -34,7 +34,6 @@
#include <sys/types.h> #include <sys/types.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <fcntl.h> #include <fcntl.h>
#include <unistd.h>
#include <stdlib.h> #include <stdlib.h>
#include <errno.h> #include <errno.h>
#include <stdio.h> #include <stdio.h>
@ -63,6 +62,7 @@
#include <sys/time.h> #include <sys/time.h>
#include <time.h> #include <time.h>
#include <poll.h> #include <poll.h>
#include <unistd.h>
#endif #endif
#ifdef __APPLE__ #ifdef __APPLE__
#include <CoreFoundation/CoreFoundation.h> #include <CoreFoundation/CoreFoundation.h>