projects
/
libserialport.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
a9900f8
)
windows: Don't try to include <unistd.h>.
author
Martin Ling
<redacted>
Sun, 29 Dec 2019 13:22:00 +0000
(14:22 +0100)
committer
Martin Ling
<redacted>
Thu, 23 Jan 2020 03:35:47 +0000
(
03:35
+0000)
This should enable compatibility with MSVC.
libserialport_internal.h
patch
|
blob
|
blame
|
history
diff --git
a/libserialport_internal.h
b/libserialport_internal.h
index 49f36d77b9d256713fba90ddf28c3f06d7df45f5..1cb477c55387df0e1e9bf123fd1c5e6db6725625 100644
(file)
--- a/
libserialport_internal.h
+++ b/
libserialport_internal.h
@@
-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>