This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: [PATCH 2/3] libstdc++-v3: ::tmpnam depends on uClibc SUSV4_LEGACY
- From: Gabriel Dos Reis <gdr at integrable-solutions dot net>
- To: Bernhard Reutner-Fischer <rep dot dot dot nop at gmail dot com>
- Cc: gcc-patches at gcc dot gnu dot org, libstdc++ at gcc dot gnu dot org, paolo dot carlini at oracle dot com
- Date: Thu, 4 Apr 2013 15:00:57 -0500
- Subject: Re: [PATCH 2/3] libstdc++-v3: ::tmpnam depends on uClibc SUSV4_LEGACY
- References: <1365105210-16552-1-git-send-email-rep dot dot dot nop at gmail dot com> <1365105210-16552-3-git-send-email-rep dot dot dot nop at gmail dot com>
On Thu, Apr 4, 2013 at 2:53 PM, Bernhard Reutner-Fischer
<rep.dot.nop@gmail.com> wrote:
> POSIX.1-2008 (SUSv4) marks tmpnam() as obsolescent. As such it is not
> available in uClibc unless SUSv4 legacy stuff is enabled.
>
> libstdc++-v3/ChangeLog
>
> 2013-03-24 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
>
> * include/c_global/cstdio: On uClibc guard ::tmpnam with SUSv4
> legacy availability.
>
> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
> ---
> libstdc++-v3/include/c_global/cstdio | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/libstdc++-v3/include/c_global/cstdio b/libstdc++-v3/include/c_global/cstdio
> index fcbec0c..037a668 100644
> --- a/libstdc++-v3/include/c_global/cstdio
> +++ b/libstdc++-v3/include/c_global/cstdio
> @@ -131,7 +131,9 @@ namespace std
> using ::sprintf;
> using ::sscanf;
> using ::tmpfile;
> +#if !defined __UCLIBC__ || defined __UCLIBC_SUSV4_LEGACY__
> using ::tmpnam;
> +#endif
> using ::ungetc;
> using ::vfprintf;
> using ::vprintf;
> --
> 1.7.10.4
>
Sounds good to me.
-- Gaby