Use location of TIOCGWINSZ from autoconf manual

Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
This commit is contained in:
Dagobert Michelsen 2013-05-26 23:32:01 +02:00 committed by Erik de Castro Lopo
parent 349c6adcf7
commit 5999d81f0e
2 changed files with 9 additions and 2 deletions

View File

@ -59,7 +59,9 @@ AC_C_INLINE
AC_C_VARARRAYS
AC_C_TYPEOF
AC_CHECK_HEADERS([stdint.h inttypes.h byteswap.h sys/param.h])
AC_CHECK_HEADERS([stdint.h inttypes.h byteswap.h sys/param.h termios.h])
AC_HEADER_TIOCGWINSZ
XIPH_C_BSWAP32

View File

@ -32,7 +32,12 @@
#include "share/compat.h"
#ifndef _WIN32
#include <wchar.h>
#include <sys/ioctl.h>
#ifdef HAVE_TERMIOS_H
# include <termios.h>
#endif
#ifdef GWINSZ_IN_SYS_IOCTL
# include <sys/ioctl.h>
#endif
#endif
const char *CHANNEL_MASK_TAG = "WAVEFORMATEXTENSIBLE_CHANNEL_MASK";