From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5100 invoked by alias); 16 Sep 2015 16:05:36 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 5077 invoked by uid 89); 16 Sep 2015 16:05:35 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.1 required=5.0 tests=AWL,BAYES_50,KAM_LAZY_DOMAIN_SECURITY,SPF_HELO_PASS,T_RP_MATCHES_RCVD autolearn=no version=3.3.2 X-Spam-User: qpsmtpd, 2 recipients X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Wed, 16 Sep 2015 16:05:35 +0000 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (Postfix) with ESMTPS id E4C662F9; Wed, 16 Sep 2015 16:05:33 +0000 (UTC) Received: from localhost (ovpn-116-24.ams2.redhat.com [10.36.116.24]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t8GG5XdQ014453; Wed, 16 Sep 2015 12:05:33 -0400 Date: Wed, 16 Sep 2015 16:11:00 -0000 From: Jonathan Wakely To: Martin Sebor Cc: libstdc++ , gcc-patches Subject: Re: [patch] libstdc++/67173 Fix filesystem::canonical for Solaris 10. Message-ID: <20150916160532.GA2631@redhat.com> References: <20150911142140.GL2631@redhat.com> <55F311D2.8050405@gmail.com> <55F469CF.9010503@gmail.com> <20150916144207.GY2631@redhat.com> <20150916160221.GZ2631@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20150916160221.GZ2631@redhat.com> X-Clacks-Overhead: GNU Terry Pratchett User-Agent: Mutt/1.5.23 (2014-03-12) X-SW-Source: 2015-09/txt/msg01203.txt.bz2 On 16/09/15 17:02 +0100, Jonathan Wakely wrote: >I don't know how to use _XOPEN_VERSION or _POSIX_VERSION to check for >a suitable realpath without defining one of those feature-test macros, >which then breaks other things. I suppose we could also define _NETBSD_SOURCE manually, which is basically what we do on GNU/Linux. G++ predefines _GNU_SOURCE so that glibc gives us all declarations, but I want to move away from that and stop polluting the global namespace with every GNU extension. Maybe defining _NETBSD_SOURCE for versions older than 7.x is the right solution though.