mirror of
https://gitlab.com/mbunkus/mkvtoolnix.git
synced 2024-10-22 07:21:21 +00:00
fix compilation on Solaris: ioctl requires more headers
This commit is contained in:
parent
8f6db59305
commit
d3cf4f5756
@ -17,5 +17,5 @@ PKG_PROG_PKG_CONFIG
|
||||
|
||||
dnl Check for headers
|
||||
AC_HEADER_STDC()
|
||||
AC_CHECK_HEADERS([inttypes.h stdint.h sys/types.h sys/syscall.h])
|
||||
AC_CHECK_HEADERS([inttypes.h stdint.h sys/types.h sys/syscall.h stropts.h])
|
||||
AC_CHECK_FUNCS([vsscanf syscall],,)
|
||||
|
@ -18,6 +18,12 @@
|
||||
# if defined(HAVE_SYS_IOCTL_H) || defined(GWINSZ_IN_SYS_IOCTL)
|
||||
# include <sys/ioctl.h>
|
||||
# endif // HAVE_SYS_IOCTL_H || GWINSZ_IN_SYS_IOCTL
|
||||
# if defined(HAVE_UNISTD_H)
|
||||
# include <unistd.h>
|
||||
# endif // HAVE_UNISTD_H
|
||||
# if defined(HAVE_STROPTS_H)
|
||||
# include <stropts.h>
|
||||
# endif // HAVE_STROPTS_H
|
||||
#endif // HAVE_TIOCGWINSZ
|
||||
|
||||
#include "common/terminal.h"
|
||||
@ -37,4 +43,3 @@ get_terminal_columns() {
|
||||
return DEFAULT_TERMINAL_COLUMNS;
|
||||
#endif // HAVE_TIOCGWINSZ
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user