From: Bruno Haible Date: Sat, 17 Mar 2007 19:02:51 +0000 (+0000) Subject: Ensure we get the mkstemp() declaration. On MacOS X, it comes from . X-Git-Tag: cvs-readonly~759 X-Git-Url: http://erislabs.org.uk/gitweb/?a=commitdiff_plain;h=2250374de7873f5332ce66167303c8007064a85e;p=gnulib.git Ensure we get the mkstemp() declaration. On MacOS X, it comes from . --- diff --git a/ChangeLog b/ChangeLog index 692f1d56b..befb85f9f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,11 @@ 2007-03-17 Bruno Haible + * modules/stdlib (Depends-on): Add unistd. + * lib/stdlib_.h: Include if mkstemp is desired. + Needed for MacOS X 10.3. + +2007-03-17 Bruno Haible + * lib/unistr/u-strdup.h: Include . 2007-03-17 Bruno Haible diff --git a/lib/stdlib_.h b/lib/stdlib_.h index 5d43203b7..a9204088e 100644 --- a/lib/stdlib_.h +++ b/lib/stdlib_.h @@ -120,6 +120,9 @@ extern char * mkdtemp (char *template); set. */ # define mkstemp rpl_mkstemp extern int mkstemp (char *template); +# else +/* On MacOS X 10.3, only declares mkstemp. */ +# include # endif #elif defined GNULIB_POSIXCHECK # undef mkstemp diff --git a/modules/stdlib b/modules/stdlib index 6496e0ed1..98e1b7d20 100644 --- a/modules/stdlib +++ b/modules/stdlib @@ -8,6 +8,7 @@ m4/stdlib_h.m4 Depends-on: absolute-header link-warning +unistd configure.ac: gl_STDLIB_H