diff --git a/configure.ac b/configure.ac index 6355f726..2f3824cf 100644 --- a/configure.ac +++ b/configure.ac @@ -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 diff --git a/src/flac/utils.c b/src/flac/utils.c index f624235b..9e08bf4a 100644 --- a/src/flac/utils.c +++ b/src/flac/utils.c @@ -32,7 +32,12 @@ #include "share/compat.h" #ifndef _WIN32 #include -#include +#ifdef HAVE_TERMIOS_H +# include +#endif +#ifdef GWINSZ_IN_SYS_IOCTL +# include +#endif #endif const char *CHANNEL_MASK_TAG = "WAVEFORMATEXTENSIBLE_CHANNEL_MASK";