getsubopt: work around cygwin bug
authorEric Blake <ebb9@byu.net>
Mon, 21 Dec 2009 18:14:18 +0000 (11:14 -0700)
committerEric Blake <ebb9@byu.net>
Tue, 22 Dec 2009 13:53:45 +0000 (06:53 -0700)
commit4e86671af61ca43f17725aa4b79a555276432fed
tree31744a604106c9985e6dc17095e1689184c69954
parent2494f34ba6b9f6cb9fa96aa2e0ea14739589cad7
getsubopt: work around cygwin bug

On cygwin, compiling with -DGNULIB_POSIXCHECK failed because
the getsubopt link warning definition interfered with the
inclusion of the system header.  The fix, as always in these
types of problems, is to ensure that system headers are
completely included before doing any overrides.

* lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
avoid conflicting with system getsubopt.
* doc/posix-functions/getsubopt.texi (getsubopt): Document the
bug.

Signed-off-by: Eric Blake <ebb9@byu.net>
ChangeLog
doc/posix-functions/getsubopt.texi
lib/stdlib.in.h