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 711c2f6..8eb38ab 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 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,
        extracted from gt_FUNC_SETENV.
        (gt_FUNC_SETENV): Remove macro.
 
        * 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 51714cd..2aba265 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 4ab99a4..4fb0a6d 100644 (file)
@@ -8,6 +8,7 @@ lib/xreadlink.c
 Depends-on:
 readlink
 ssize_t
+unistd
 xalloc
 
 configure.ac:
index 252cd0e..b2e17d1 100644 (file)
@@ -8,6 +8,7 @@ lib/xreadlink-with-size.c
 Depends-on:
 readlink
 ssize_t
+unistd
 xalloc
 
 configure.ac: