summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2010-09-18 20:24:41 +0200
committerJim Meyering <meyering@redhat.com>2010-09-18 21:32:18 +0200
commitc12d83920f8d00cf3401d74559bb193d5760e9f8 (patch)
treed24411bf7624051b9397d26e8532f15d7fc12d34 /src
parentedc69f915842fdbce0069b6fba03643ad448daf8 (diff)
downloadcoreutils-c12d83920f8d00cf3401d74559bb193d5760e9f8.tar.xz
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.
Diffstat (limited to 'src')
-rw-r--r--src/ls.c4
-rw-r--r--src/stty.c4
2 files changed, 2 insertions, 6 deletions
diff --git a/src/ls.c b/src/ls.c
index 6e3e836cb..f861df91a 100644
--- a/src/ls.c
+++ b/src/ls.c
@@ -39,9 +39,7 @@
#include <config.h>
#include <sys/types.h>
-#if HAVE_TERMIOS_H
-# include <termios.h>
-#endif
+#include <termios.h>
#if HAVE_STROPTS_H
# include <stropts.h>
#endif
diff --git a/src/stty.c b/src/stty.c
index 71045c281..5d9d4f0c0 100644
--- a/src/stty.c
+++ b/src/stty.c
@@ -36,9 +36,7 @@
#include <stdio.h>
#include <sys/types.h>
-#if HAVE_TERMIOS_H
-# include <termios.h>
-#endif
+#include <termios.h>
#if HAVE_STROPTS_H
# include <stropts.h>
#endif