From 0e7d534529c28c21b1641840f5c0e48cd7d09998 Mon Sep 17 00:00:00 2001 From: Andrew Borodin Date: Tue, 16 Oct 2012 14:09:17 +0400 Subject: [PATCH] Fix of sys/ioctl.h includes: use HAVE_SYS_IOCTL_H guard. Signed-off-by: Andrew Borodin --- lib/tty/key.c | 4 ++++ src/cons.handler.c | 2 ++ 2 files changed, 6 insertions(+) diff --git a/lib/tty/key.c b/lib/tty/key.c index 13952169f..1d834e49c 100644 --- a/lib/tty/key.c +++ b/lib/tty/key.c @@ -63,12 +63,16 @@ #else #include #endif +#ifdef HAVE_SYS_IOCTL_H #include +#endif #endif /* __linux__ */ #ifdef __CYGWIN__ #include +#ifdef HAVE_SYS_IOCTL_H #include +#endif #endif /* __CYGWIN__ */ #ifdef __QNXNTO__ diff --git a/src/cons.handler.c b/src/cons.handler.c index 3ccaa7c72..2a7b03887 100644 --- a/src/cons.handler.c +++ b/src/cons.handler.c @@ -35,8 +35,10 @@ #include #ifdef __FreeBSD__ #include +#ifdef HAVE_SYS_IOCTL_H #include #endif +#endif #include #include "lib/global.h"