mirror of
https://git.savannah.gnu.org/git/gnulib.git
synced 2025-09-11 11:50:52 +03:00
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>
23 lines
486 B
Plaintext
23 lines
486 B
Plaintext
@node getsubopt
|
|
@section @code{getsubopt}
|
|
@findex getsubopt
|
|
|
|
POSIX specification: @url{http://www.opengroup.org/onlinepubs/9699919799/functions/getsubopt.html}
|
|
|
|
Gnulib module: getsubopt
|
|
|
|
Portability problems fixed by Gnulib:
|
|
@itemize
|
|
@item
|
|
This function is declared in @code{unistd.h} instead of
|
|
@code{stdlib.h} on some platforms:
|
|
Cygwin 1.7.1.
|
|
@item
|
|
This function is missing on some platforms:
|
|
mingw, BeOS.
|
|
@end itemize
|
|
|
|
Portability problems not fixed by Gnulib:
|
|
@itemize
|
|
@end itemize
|