From 52e96a8092e4c0bfef5bd9748b35861bba6f6b88 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Wed, 13 Jan 2010 07:15:17 -0800 Subject: [PATCH] Be a bit more relaxed about obsoleted mktemp symbol. --- ChangeLog | 4 ++++ stdlib/stdlib.h | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 61c64db6c8..736bd5d778 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2010-01-13 Ulrich Drepper + + * stdlib/stdlib.h: Be a bit more relaxed about obsoleted mktemp symbol. + 2010-01-12 Ulrich Drepper * conform/data/complex.h-data: Test for POSIX2008. diff --git a/stdlib/stdlib.h b/stdlib/stdlib.h index 75750205c8..bac8ed65be 100644 --- a/stdlib/stdlib.h +++ b/stdlib/stdlib.h @@ -597,8 +597,8 @@ extern int clearenv (void) __THROW; #endif -#if ((defined __USE_MISC || defined __USE_XOPEN_EXTENDED) \ - && !defined __USE_XOPEN2K) || defined __USE_GNU +#if defined __USE_MISC \ + || (defined __USE_XOPEN_EXTENDED && !defined __USE_XOPEN2K) /* Generate a unique temporary file name from TEMPLATE. The last six characters of TEMPLATE must be "XXXXXX"; they are replaced with a string that makes the file name unique.