Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit c12d83920f8d00cf3401d74559bb193d5760e9f8 1 parent edc69f9
Jim Meyering authored
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
1  bootstrap.conf
View
@@ -207,6 +207,7 @@ gnulib_modules="
sys_ioctl
sys_stat
sys_wait
+ termios
timespec
tzset
uname
3  m4/jm-macros.m4
View
@@ -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
4 src/ls.c
View
@@ -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
4 src/stty.c
View
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.