changeset 8303:fb6ff6e4ca87

xreadlink and xreadlink-with-size can include <unistd.h> unconditionally and therefore assume module 'unistd'.
author Bruno Haible <bruno@clisp.org>
date Sat, 03 Mar 2007 19:20:41 +0000
parents d86464892f97
children e42becd912e3
files ChangeLog lib/xreadlink.c modules/xreadlink modules/xreadlink-with-size
diffstat 4 files changed, 10 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- 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,
@@ -26143,4 +26149,4 @@
 
 	* 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>
--- a/lib/xreadlink.c
+++ b/lib/xreadlink.c
@@ -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)
--- a/modules/xreadlink
+++ b/modules/xreadlink
@@ -8,6 +8,7 @@
 Depends-on:
 readlink
 ssize_t
+unistd
 xalloc
 
 configure.ac:
--- a/modules/xreadlink-with-size
+++ b/modules/xreadlink-with-size
@@ -8,6 +8,7 @@
 Depends-on:
 readlink
 ssize_t
+unistd
 xalloc
 
 configure.ac: