From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/6142 Path: news.gmane.org!not-for-mail From: =?windows-1252?Q?J=F6rg_Krause?= Newsgroups: gmane.linux.lib.musl.general Subject: Re: why is there no __MUSL__ macro? Date: Thu, 11 Sep 2014 14:02:59 +0200 Message-ID: <54118F73.2020807@posteo.de> References: <541180B9.5070604@posteo.de> <541182D3.5010104@skarnet.org> <20140911111721.GG21835@port70.net> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1410436982 21611 80.91.229.3 (11 Sep 2014 12:03:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 11 Sep 2014 12:03:02 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-6155-gllmg-musl=m.gmane.org@lists.openwall.com Thu Sep 11 14:02:57 2014 Return-path: Envelope-to: gllmg-musl@plane.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1XS35T-0002Bp-Ue for gllmg-musl@plane.gmane.org; Thu, 11 Sep 2014 14:02:56 +0200 Original-Received: (qmail 13653 invoked by uid 550); 11 Sep 2014 12:02:55 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 13638 invoked from network); 11 Sep 2014 12:02:54 -0000 X-Virus-Scanned: amavisd-new at posteo.de User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.1.0 In-Reply-To: <20140911111721.GG21835@port70.net> Xref: news.gmane.org gmane.linux.lib.musl.general:6142 Archived-At: On 09/11/2014 01:17 PM, Szabolcs Nagy wrote: > * Laurent Bercot [2014-09-11 12:09:07 +0100]: >>> FFmpeg needs support for library features defined in POSIX.1-2001 with XSI extension and the standards below. Currently configure probes the host and target libc by checking for defined macros like __GLIBC__ and __UCLIBC__. In case of glibc and uclibc it sets -D_XOPEN_SOURCE=600 properly. >> Why not set this macro unconditionally ? >> All standards-compliant libcs will make the correct symbols visible >> if you define _XOPEN_SOURCE to a certain value. This include glibc, > this has to be the most frequently asked question > > http://wiki.musl-libc.org/wiki/FAQ#Q:_why_is_there_no_MUSL_macro_.3F > > and yes, assuming standard conformance by default is the > sane thing to do I see. So it should be safe to assume standard conformance of the libc and set _XOPEN_SOURCE properly. > > then _testing_ for conformance issues is the second try > if the default fails What do you mean with testing for concormance?