bison-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: anonymous . maarten
Subject: [PATCH 1/5] Don't include sys/ioctl.h and termios.h on Windows
Date: Thu, 30 Jul 2020 20:53:31 +0200

From: Anonymous Maarten <anonymous.maarten@gmail.com>

---
 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]