build: pull in conditional headers during GNULIB_POSIXCHECK
authorEric Blake <ebb9@byu.net>
Thu, 24 Dec 2009 13:01:43 +0000 (06:01 -0700)
committerEric Blake <ebb9@byu.net>
Thu, 24 Dec 2009 13:09:40 +0000 (06:09 -0700)
commitd3e8c326354490860582c5e4293a2f29bbd14530
tree5253999a0e330d30f170e49455aec43f81ce401e
parent3e2d7ac6c75ad7c92d25f59d11bd455d37ba4e37
build: pull in conditional headers during GNULIB_POSIXCHECK

Any time we conditionally include a header in order to satisfy
prerequisites of one module, we must also include that header
under GNULIB_POSIXCHECK to avoid compilation errors if that
module is not in use.  If this is not done, then our link warning
override can occur before the system's declaration, which
causes a syntax error when the system header is finally included.

* lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
definitions from any conditionally-included headers.
* lib/stdlib.in.h (includes): Likewise.
* lib/unistd.in.h (includes): Likewise.

Signed-off-by: Eric Blake <ebb9@byu.net>
ChangeLog
lib/stdio.in.h
lib/stdlib.in.h
lib/unistd.in.h