Hash :
4e86671a
Author :
Date :
2009-12-21T11:14:18
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>
@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