Fix of sys/ioctl.h includes: use HAVE_SYS_IOCTL_H guard.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Andrew Borodin 2012-10-16 14:09:17 +04:00
parent 76f345880a
commit 0e7d534529
2 changed files with 6 additions and 0 deletions

View File

@ -63,12 +63,16 @@
#else
#include <termios.h>
#endif
#ifdef HAVE_SYS_IOCTL_H
#include <sys/ioctl.h>
#endif
#endif /* __linux__ */
#ifdef __CYGWIN__
#include <termios.h>
#ifdef HAVE_SYS_IOCTL_H
#include <sys/ioctl.h>
#endif
#endif /* __CYGWIN__ */
#ifdef __QNXNTO__

View File

@ -35,8 +35,10 @@
#include <sys/types.h>
#ifdef __FreeBSD__
#include <sys/consio.h>
#ifdef HAVE_SYS_IOCTL_H
#include <sys/ioctl.h>
#endif
#endif
#include <unistd.h>
#include "lib/global.h"