From: Bruno Haible Date: Sat, 3 Mar 2007 19:20:41 +0000 (+0000) Subject: xreadlink and xreadlink-with-size can include unconditionally and X-Git-Tag: cvs-readonly~915 X-Git-Url: http://erislabs.net/gitweb/?a=commitdiff_plain;h=535388620f626539486ff29e158fbecdd7e401df;p=gnulib.git xreadlink and xreadlink-with-size can include unconditionally and therefore assume module 'unistd'. --- diff --git a/ChangeLog b/ChangeLog index 711c2f628..8eb38abc6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,11 @@ 2007-03-03 Bruno Haible + * lib/xreadlink.c: Include unconditionally. + * modules/xreadlink (Depends-on): Add unistd. + * modules/xreadlink-with-size (Depends-on): Likewise. + +2007-03-03 Bruno Haible + * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros, extracted from gt_FUNC_SETENV. (gt_FUNC_SETENV): Remove macro. @@ -26143,4 +26149,4 @@ * m4/largefile.m4: Remove file (now that it's part of autoconf). -2000-06-04 Paul Eggert \ No newline at end of file +2000-06-04 Paul Eggert diff --git a/lib/xreadlink.c b/lib/xreadlink.c index 51714cd57..2aba26547 100644 --- a/lib/xreadlink.c +++ b/lib/xreadlink.c @@ -31,9 +31,7 @@ #include #include #include -#if HAVE_UNISTD_H -# include -#endif +#include #ifndef SIZE_MAX # define SIZE_MAX ((size_t) -1) diff --git a/modules/xreadlink b/modules/xreadlink index 4ab99a4ea..4fb0a6d8a 100644 --- a/modules/xreadlink +++ b/modules/xreadlink @@ -8,6 +8,7 @@ lib/xreadlink.c Depends-on: readlink ssize_t +unistd xalloc configure.ac: diff --git a/modules/xreadlink-with-size b/modules/xreadlink-with-size index 252cd0e1f..b2e17d12c 100644 --- a/modules/xreadlink-with-size +++ b/modules/xreadlink-with-size @@ -8,6 +8,7 @@ lib/xreadlink-with-size.c Depends-on: readlink ssize_t +unistd xalloc configure.ac: