[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
- [PATCH 0/5] Support building bison with MSVC, anonymous . maarten, 2020/07/30
- [PATCH 3/5] Use INT_LITERAL instead of INT because MSVC defines INT, anonymous . maarten, 2020/07/30
- [PATCH 4/5] Use CHAR_LITERAL instead of CHAR because MSVC defines CHAR, anonymous . maarten, 2020/07/30
- [PATCH 1/5] Don't include sys/ioctl.h and termios.h on Windows,
anonymous . maarten <=
- [PATCH 2/5] Use max_int instead of max because MSVC defines this symbol already, anonymous . maarten, 2020/07/30
- [PATCH 5/5] Rename accept to acceptsymbol because MSVC already defines this symbol, anonymous . maarten, 2020/07/30
- Re: [PATCH 0/5] Support building bison with MSVC, Akim Demaille, 2020/07/31