Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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
1  bootstrap.conf
@@ -207,6 +207,7 @@ gnulib_modules="
207 207 sys_ioctl
208 208 sys_stat
209 209 sys_wait
  210 + termios
210 211 timespec
211 212 tzset
212 213 uname
3  m4/jm-macros.m4
... ... @@ -1,4 +1,4 @@
1   -#serial 109 -*- autoconf -*-
  1 +#serial 110 -*- autoconf -*-
2 2
3 3 dnl Misc type-related macros for coreutils.
4 4
@@ -176,7 +176,6 @@ AC_DEFUN([gl_CHECK_ALL_HEADERS],
176 176 sys/resource.h \
177 177 sys/systeminfo.h \
178 178 syslog.h \
179   - termios.h \
180 179 )
181 180 AC_CHECK_HEADERS([sys/sysctl.h], [], [],
182 181 [AC_INCLUDES_DEFAULT
4 src/ls.c
@@ -39,9 +39,7 @@
39 39 #include <config.h>
40 40 #include <sys/types.h>
41 41
42   -#if HAVE_TERMIOS_H
43   -# include <termios.h>
44   -#endif
  42 +#include <termios.h>
45 43 #if HAVE_STROPTS_H
46 44 # include <stropts.h>
47 45 #endif
4 src/stty.c
@@ -36,9 +36,7 @@
36 36 #include <stdio.h>
37 37 #include <sys/types.h>
38 38
39   -#if HAVE_TERMIOS_H
40   -# include <termios.h>
41   -#endif
  39 +#include <termios.h>
42 40 #if HAVE_STROPTS_H
43 41 # include <stropts.h>
44 42 #endif

0 comments on commit c12d839

Please sign in to comment.
Something went wrong with that request. Please try again.