configure: Assume that termios.h is available on Unix.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alexandre Julliard 2021-12-09 10:55:02 +01:00
parent f8faa8ced5
commit 7d5af65591
5 changed files with 1 additions and 15 deletions

6
configure vendored
View File

@ -8713,12 +8713,6 @@ if test "x$ac_cv_header_syscall_h" = xyes
then :
printf "%s\n" "#define HAVE_SYSCALL_H 1" >>confdefs.h
fi
ac_fn_c_check_header_compile "$LINENO" "termios.h" "ac_cv_header_termios_h" "$ac_includes_default"
if test "x$ac_cv_header_termios_h" = xyes
then :
printf "%s\n" "#define HAVE_TERMIOS_H 1" >>confdefs.h
fi
ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
if test "x$ac_cv_header_unistd_h" = xyes

View File

@ -511,7 +511,6 @@ AC_CHECK_HEADERS(\
sys/vnode.h \
sys/wait.h \
syscall.h \
termios.h \
unistd.h \
utime.h \
valgrind/memcheck.h \

View File

@ -31,9 +31,7 @@
#include <stdlib.h>
#include <stdarg.h>
#include <stdio.h>
#ifdef HAVE_TERMIOS_H
#include <termios.h>
#endif
#include <unistd.h>
#include <fcntl.h>
#include <sys/stat.h>

View File

@ -751,9 +751,6 @@
/* Define to 1 if you have the `tcdrain' function. */
#undef HAVE_TCDRAIN
/* Define to 1 if you have the <termios.h> header file. */
#undef HAVE_TERMIOS_H
/* Define to 1 if you have the `thr_kill2' function. */
#undef HAVE_THR_KILL2

View File

@ -31,14 +31,12 @@
#include <sys/time.h>
#include <sys/types.h>
#include <time.h>
#include <termios.h>
#include <unistd.h>
#include <poll.h>
#ifdef HAVE_UTIME_H
#include <utime.h>
#endif
#ifdef HAVE_TERMIOS_H
#include <termios.h>
#endif
#ifdef HAVE_SYS_IOCTL_H
#include <sys/ioctl.h>
#endif