From: Jim Meyering Date: Sat, 18 Sep 2010 18:24:41 +0000 (+0200) Subject: build: use gnulib's new termios module X-Git-Tag: v8.6~44 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c12d83920f8d00cf3401d74559bb193d5760e9f8;p=platform%2Fupstream%2Fcoreutils.git build: use gnulib's new termios module With it, we can remove the two sole tests of HAVE_TERMIOS_H. * bootstrap.conf (gnulib_modules): Add termios. * src/ls.c: Don't test HAVE_TERMIOS_H. * src/stty.c: Likewise. * m4/jm-macros.m4 (gl_CHECK_ALL_TYPES): Remove configure-time test for termios.h. --- diff --git a/bootstrap.conf b/bootstrap.conf index e84424a..920fe63 100644 --- a/bootstrap.conf +++ b/bootstrap.conf @@ -207,6 +207,7 @@ gnulib_modules=" sys_ioctl sys_stat sys_wait + termios timespec tzset uname diff --git a/m4/jm-macros.m4 b/m4/jm-macros.m4 index 20b9af9..6faf08a 100644 --- a/m4/jm-macros.m4 +++ b/m4/jm-macros.m4 @@ -1,4 +1,4 @@ -#serial 109 -*- autoconf -*- +#serial 110 -*- autoconf -*- dnl Misc type-related macros for coreutils. @@ -176,7 +176,6 @@ AC_DEFUN([gl_CHECK_ALL_HEADERS], sys/resource.h \ sys/systeminfo.h \ syslog.h \ - termios.h \ ) AC_CHECK_HEADERS([sys/sysctl.h], [], [], [AC_INCLUDES_DEFAULT diff --git a/src/ls.c b/src/ls.c index 6e3e836..f861df9 100644 --- a/src/ls.c +++ b/src/ls.c @@ -39,9 +39,7 @@ #include #include -#if HAVE_TERMIOS_H -# include -#endif +#include #if HAVE_STROPTS_H # include #endif diff --git a/src/stty.c b/src/stty.c index 71045c2..5d9d4f0 100644 --- a/src/stty.c +++ b/src/stty.c @@ -36,9 +36,7 @@ #include #include -#if HAVE_TERMIOS_H -# include -#endif +#include #if HAVE_STROPTS_H # include #endif