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"