From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/4308 Path: news.gmane.org!not-for-mail From: John Spencer Newsgroups: gmane.linux.lib.musl.general Subject: Re: IPv4 and IPv6 addresses in resolv.conf Date: Sat, 30 Nov 2013 11:18:33 +0100 Message-ID: <5299BB79.4030707@barfooze.de> References: <761df492-c2ee-41d5-84f8-faef313164bf@email.android.com> <20131129174410.GD24286@brightrain.aerifal.cx> <20131130003704.GL24286@brightrain.aerifal.cx> <20131130031744.GM24286@brightrain.aerifal.cx> <20131130035116.GO24286@brightrain.aerifal.cx> <5299AC3C.8020405@skarnet.org> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1385806731 27890 80.91.229.3 (30 Nov 2013 10:18:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 30 Nov 2013 10:18:51 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-4312-gllmg-musl=m.gmane.org@lists.openwall.com Sat Nov 30 11:18:57 2013 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 1VmhdY-0008Br-Qq for gllmg-musl@plane.gmane.org; Sat, 30 Nov 2013 11:18:56 +0100 Original-Received: (qmail 28633 invoked by uid 550); 30 Nov 2013 10:18:56 -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 28623 invoked from network); 30 Nov 2013 10:18:56 -0000 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:17.0) Gecko/20130801 Thunderbird/17.0.8 In-Reply-To: <5299AC3C.8020405@skarnet.org> Xref: news.gmane.org gmane.linux.lib.musl.general:4308 Archived-At: Laurent Bercot wrote: > >> OK, so how do we detect if the system "has IPv6"? I don't think it's >> an easy question to answer, but it's not just a rhetorical question >> either since we need to know for the AI_ADDRCONFIG flag that's not yet >> working, so this may very well be the right way to go. > > Is there any problem with a build-time test that opens an IPv6 socket ? > This is what skalibs does and it's been working so far. Of course, any > build-time test makes cross-compilation difficult, it also makes binaries that work on some systems, but not on others. musl follows a philosophy of maximum portable binaries.