diff options
author | Claudio Fontana <sick_soul@users.sourceforge.net> | 2006-07-22 03:37:03 +0000 |
---|---|---|
committer | Claudio Fontana <sick_soul@users.sourceforge.net> | 2006-07-22 03:37:03 +0000 |
commit | 5941aba0f737a0ec651b85bcecf4b6634fc212d7 (patch) | |
tree | 011e5a6c445780279c02f05ea5c8b00d696b8027 | |
parent | c3a4372e8c93925442c67d2ff0dd645b9760ea40 (diff) | |
download | idutils-5941aba0f737a0ec651b85bcecf4b6634fc212d7.tar.gz idutils-5941aba0f737a0ec651b85bcecf4b6634fc212d7.tar.bz2 idutils-5941aba0f737a0ec651b85bcecf4b6634fc212d7.zip |
* add missing checks for terminal-related include files
-rw-r--r-- | ChangeLog | 1 | ||||
-rw-r--r-- | configure.ac | 2 | ||||
-rw-r--r-- | libidu/walker.c | 2 | ||||
-rw-r--r-- | src/mkid.c | 2 |
4 files changed, 5 insertions, 2 deletions
@@ -1,5 +1,6 @@ 2006-07-22 Claudio Fontana <claudio@gnu.org> + * configure.ac: add header checks for terminal-related stuff. * configure.ac: add check for lstat, bumped to 4.2 * libidu/idfile.c: replace include sys/stat.h with lstat.h. diff --git a/configure.ac b/configure.ac index 5d25e99..d97f7aa 100644 --- a/configure.ac +++ b/configure.ac @@ -42,6 +42,8 @@ gl_INIT # Checks for header files. +AC_CHECK_HEADERS([termios.h sys/ioctl.h termio.h sgtty.h]) + # Checks for typedefs, structures, and compiler characteristics. AC_C_CONST AC_C_INLINE diff --git a/libidu/walker.c b/libidu/walker.c index eeaf81f..a25f5f4 100644 --- a/libidu/walker.c +++ b/libidu/walker.c @@ -79,7 +79,7 @@ int lstat(const char *filename, struct stat *sbuf) { return stat(filename, sbuf); } -#endif +#endif /* !HAVE_LSTAT */ #if HAVE_LINK @@ -189,7 +189,7 @@ static void *get_process_heap(void) return sbrk(0); #else return 0; -#endif +#endif /* HAVE_SBRK */ } int |