xreadlink and xreadlink-with-size can include <unistd.h> unconditionally and
authorBruno Haible <bruno@clisp.org>
Sat, 3 Mar 2007 19:20:41 +0000 (19:20 +0000)
committerBruno Haible <bruno@clisp.org>
Sat, 3 Mar 2007 19:20:41 +0000 (19:20 +0000)
therefore assume module 'unistd'.

ChangeLog
lib/xreadlink.c
modules/xreadlink
modules/xreadlink-with-size

index 711c2f628511919b41f2589d6fdc58ef702073c9..8eb38abc600ced863bad57d9d423c7b91f39f8a4 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2007-03-03  Bruno Haible  <bruno@clisp.org>
+
+       * lib/xreadlink.c: Include <unistd.h> unconditionally.
+       * modules/xreadlink (Depends-on): Add unistd.
+       * modules/xreadlink-with-size (Depends-on): Likewise.
+
 2007-03-03  Bruno Haible  <bruno@clisp.org>
 
        * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
 
        * m4/largefile.m4: Remove file (now that it's part of autoconf).
 
-2000-06-04  Paul Eggert  <eggert@twinsun.com>
\ No newline at end of file
+2000-06-04  Paul Eggert  <eggert@twinsun.com>
index 51714cd577f88c469999041a4644cd246fc35f1d..2aba2654780912fa86c299fdff4b20a554a05385 100644 (file)
@@ -31,9 +31,7 @@
 #include <limits.h>
 #include <sys/types.h>
 #include <stdlib.h>
-#if HAVE_UNISTD_H
-# include <unistd.h>
-#endif
+#include <unistd.h>
 
 #ifndef SIZE_MAX
 # define SIZE_MAX ((size_t) -1)
index 4ab99a4eae3f41dc4837536f44caecf6d10ae80d..4fb0a6d8a99d8eeb5a4dda85fc3386c6d844e69a 100644 (file)
@@ -8,6 +8,7 @@ lib/xreadlink.c
 Depends-on:
 readlink
 ssize_t
+unistd
 xalloc
 
 configure.ac:
index 252cd0e1f100054e6d24ecc99984c3c24ec528ab..b2e17d12c1c940ef43272303e00f2d1c52c19e9b 100644 (file)
@@ -8,6 +8,7 @@ lib/xreadlink-with-size.c
 Depends-on:
 readlink
 ssize_t
+unistd
 xalloc
 
 configure.ac: