[PATCH 1/5] Don't include sys/ioctl.h and termios.h on Windows

[email protected]
Newsgroups gmane.comp.parsers.bison.patches
Message-ID <[email protected]>
From: Anonymous Maarten <[email protected]>

---
 src/location.c | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/src/location.c b/src/location.c
index 5718144f..de730b8d 100644
--- a/src/location.c
+++ b/src/location.c
@@ -25,9 +25,13 @@
 #include <mbswidth.h>
 #include <quotearg.h>
 #include <stdio.h>    /* fileno */
-#include <sys/ioctl.h>
+#if !defined(_WINDOWS)
+# include <sys/ioctl.h>
+#endif
 #include <sys/stat.h> /* fstat */
-#include <termios.h>
+#if !defined(_WINDOWS)
+# include <termios.h>
+#endif
 
 #ifdef WINSIZE_IN_PTEM
 # include <sys/stream.h>
-- 
2.21.3
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.