[PATCH 1/5] Don't include sys/ioctl.h and termios.h on Windows
| 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