Commit 5999d81f authored by Dagobert Michelsen's avatar Dagobert Michelsen Committed by Erik de Castro Lopo
Browse files

Use location of TIOCGWINSZ from autoconf manual


Signed-off-by: Erik de Castro Lopo's avatarErik de Castro Lopo <erikd@mega-nerd.com>
parent 349c6adc
......@@ -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
......
......@@ -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";
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment