Permalink
Browse files

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.
  • Loading branch information...
1 parent edc69f9 commit c12d83920f8d00cf3401d74559bb193d5760e9f8 Jim Meyering committed Sep 18, 2010
Showing with 4 additions and 8 deletions.
  1. +1 −0 bootstrap.conf
  2. +1 −2 m4/jm-macros.m4
  3. +1 −3 src/ls.c
  4. +1 −3 src/stty.c
View
1 bootstrap.conf
@@ -207,6 +207,7 @@ gnulib_modules="
sys_ioctl
sys_stat
sys_wait
+ termios
timespec
tzset
uname
View
3 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
View
4 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
View
4 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

0 comments on commit c12d839

Please sign in to comment.