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-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=535388620f626539486ff29e158fbecdd7e401df;p=pspp xreadlink and xreadlink-with-size can include unconditionally and therefore assume module 'unistd'. --- diff --git a/ChangeLog b/ChangeLog index 711c2f6285..8eb38abc60 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +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, @@ -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 51714cd577..2aba265478 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 4ab99a4eae..4fb0a6d8a9 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 252cd0e1f1..b2e17d12c1 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: