From patchwork Thu Apr 4 19:53:29 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bernhard Reutner-Fischer X-Patchwork-Id: 233932 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "localhost", Issuer "www.qmailtoaster.com" (not verified)) by ozlabs.org (Postfix) with ESMTPS id AD20A2C0082 for ; Fri, 5 Apr 2013 06:55:09 +1100 (EST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:cc:subject:date:message-id:in-reply-to:references; q=dns; s= default; b=Ot9Fkln6RWhFQc5XPJgunjm2qt7AJyT1Zu423nDHbimDLkhGt3/Jo YfKLF/Yx3cggnNr87jsxj17n2dn7t/AJnNLSsdYxRMjknF4mdQe9Y6FCat+ZcOdK +8TnizS97apLDrI/rSVEc4FCK9KYK9KvVX9Qr+DmOZMdI9oX8xo5dU= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:cc:subject:date:message-id:in-reply-to:references; s= default; bh=9NDZnHuhGjBu17cintcgBalbiRs=; b=VCutpAA3cJTbOFnfMiXe sOBEDYbrmUeLW4MaUliz5b9QixXQRFaQfwIOK3/escFAEeCF9v3UbnxT39rar6q1 nhxqmgQYgrlVrLasUjpLDsyekotibCK7W65dA/FnW4ZCwZKj+A5kv6SvAhh6Lg/A lMBXXf6QwVqr3agIjBD7SfM= Received: (qmail 10530 invoked by alias); 4 Apr 2013 19:54:17 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 10502 invoked by uid 89); 4 Apr 2013 19:54:17 -0000 X-Spam-SWARE-Status: No, score=-5.0 required=5.0 tests=AWL, BAYES_00, FREEMAIL_FROM, KHOP_RCVD_TRUST, KHOP_THREADED, RCVD_IN_DNSWL_LOW, RCVD_IN_HOSTKARMA_YE autolearn=ham version=3.3.1 X-Spam-User: qpsmtpd, 2 recipients Received: from mail-bk0-f46.google.com (HELO mail-bk0-f46.google.com) (209.85.214.46) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Thu, 04 Apr 2013 19:54:14 +0000 Received: by mail-bk0-f46.google.com with SMTP id je9so1770985bkc.19 for ; Thu, 04 Apr 2013 12:54:12 -0700 (PDT) X-Received: by 10.205.104.8 with SMTP id dk8mr5484280bkc.34.1365105252028; Thu, 04 Apr 2013 12:54:12 -0700 (PDT) Received: from s42.loc (91-119-221-41.dynamic.xdsl-line.inode.at. [91.119.221.41]) by mx.google.com with ESMTPS id x10sm7061717bkv.13.2013.04.04.12.54.10 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 04 Apr 2013 12:54:11 -0700 (PDT) Received: from cow by s42.loc with local (Exim 4.80) (envelope-from ) id 1UNqEb-0004Jp-Sm; Thu, 04 Apr 2013 21:54:09 +0200 From: Bernhard Reutner-Fischer To: gcc-patches@gcc.gnu.org Cc: Bernhard Reutner-Fischer , libstdc++@gcc.gnu.org, paolo.carlini@oracle.com, gdr@integrable-solutions.net Subject: [PATCH 2/3] libstdc++-v3: ::tmpnam depends on uClibc SUSV4_LEGACY Date: Thu, 4 Apr 2013 21:53:29 +0200 Message-Id: <1365105210-16552-3-git-send-email-rep.dot.nop@gmail.com> In-Reply-To: <1365105210-16552-1-git-send-email-rep.dot.nop@gmail.com> References: <1365105210-16552-1-git-send-email-rep.dot.nop@gmail.com> X-IsSubscribed: yes 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 * include/c_global/cstdio: On uClibc guard ::tmpnam with SUSv4 legacy availability. Signed-off-by: Bernhard Reutner-Fischer --- 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;