# HG changeset patch # User Bruno Haible # Date 1303942008 -7200 # Node ID a4506cc8f2da4b6afcda9565de2c2e3bfb0335f8 # Parent 1f2629ca413e0ac1cc96e1af60a542288fe06c71 mkstemps: Ensure declaration on MacOS X 10.5. * lib/stdlib.in.h: Include when mkstemps is requested. * doc/glibc-functions/mkstemps.texi: Document header file problem on MacOS X. diff --git a/ChangeLog b/ChangeLog --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2011-04-27 Bruno Haible + + mkstemps: Ensure declaration on MacOS X 10.5. + * lib/stdlib.in.h: Include when mkstemps is requested. + * doc/glibc-functions/mkstemps.texi: Document header file problem on + MacOS X. + 2011-04-27 Bruno Haible mkstemp: More documentation. diff --git a/doc/glibc-functions/mkstemps.texi b/doc/glibc-functions/mkstemps.texi --- a/doc/glibc-functions/mkstemps.texi +++ b/doc/glibc-functions/mkstemps.texi @@ -10,6 +10,10 @@ This function is missing on many non-glibc platforms: glibc 2.10, AIX 5.1, HP-UX 11, IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x, mingw, Interix 3.5, BeOS. +@item +This function is declared in @code{} instead of @code{} +on some platforms: +MacOS X 10.5. @end itemize Portability problems not fixed by Gnulib: diff --git a/lib/stdlib.in.h b/lib/stdlib.in.h --- a/lib/stdlib.in.h +++ b/lib/stdlib.in.h @@ -81,8 +81,9 @@ # endif #endif -#if (@GNULIB_MKSTEMP@ || @GNULIB_GETSUBOPT@ || defined GNULIB_POSIXCHECK) && ! defined __GLIBC__ && !((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__) +#if (@GNULIB_MKSTEMP@ || @GNULIB_MKSTEMPS@ || @GNULIB_GETSUBOPT@ || defined GNULIB_POSIXCHECK) && ! defined __GLIBC__ && !((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__) /* On MacOS X 10.3, only declares mkstemp. */ +/* On MacOS X 10.5, only declares mkstemps. */ /* On Cygwin 1.7.1, only declares getsubopt. */ /* But avoid namespace pollution on glibc systems and native Windows. */ # include