From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22236 invoked from network); 12 Jul 2009 17:18:59 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.5 Received: from new-brage.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.254.104) by ns1.primenet.com.au with SMTP; 12 Jul 2009 17:18:59 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 15715 invoked from network); 12 Jul 2009 17:18:53 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 12 Jul 2009 17:18:53 -0000 Received: (qmail 50 invoked by alias); 12 Jul 2009 17:18:43 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 27137 Received: (qmail 25 invoked from network); 12 Jul 2009 17:18:42 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 12 Jul 2009 17:18:42 -0000 Received: from mtaout01-winn.ispmail.ntl.com (mtaout01-winn.ispmail.ntl.com [81.103.221.47]) by bifrost.dotsrc.org (Postfix) with ESMTP id 8E7EB8027106 for ; Sun, 12 Jul 2009 19:18:39 +0200 (CEST) Received: from aamtaout01-winn.ispmail.ntl.com ([81.103.221.35]) by mtaout01-winn.ispmail.ntl.com (InterMail vM.7.08.04.00 201-2186-134-20080326) with ESMTP id <20090712171838.BRQW6742.mtaout01-winn.ispmail.ntl.com@aamtaout01-winn.ispmail.ntl.com>; Sun, 12 Jul 2009 18:18:38 +0100 Received: from pws-pc ([81.107.42.185]) by aamtaout01-winn.ispmail.ntl.com (InterMail vG.2.02.00.01 201-2161-120-102-20060912) with ESMTP id <20090712171813.XKTL13254.aamtaout01-winn.ispmail.ntl.com@pws-pc>; Sun, 12 Jul 2009 18:18:13 +0100 Date: Sun, 12 Jul 2009 18:18:07 +0100 From: Peter Stephenson To: zsh-workers@sunsite.dk Cc: Cyril Brulebois Subject: Re: PATCH: _GNU_SOURCE when __GNU__ Message-ID: <20090712181807.282a534a@pws-pc> In-Reply-To: <20090712163708.GA10163@scru.org> References: <20090530175333.GA21771@scru.org> <20090712163708.GA10163@scru.org> X-Mailer: Claws Mail 3.7.1 (GTK+ 2.16.2; x86_64-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Cloudmark-Analysis: v=1.0 c=1 a=D62IbJDD2A0A:10 a=HYshxDoSAAAA:8 a=NLZqzBF-AAAA:8 a=3ofrj-AHY4Axh9GvitIA:9 a=_c6EL9fQrMOlwfwhcsYA:7 a=NDyAt7V4A-DWLSyeURIMMOThXEQA:4 a=MlPZ8bZMJJ0A:10 a=_dQi-Dcv4p4A:10 X-Virus-Scanned: ClamAV 0.94.2/9556/Sun Jul 12 17:03:47 2009 on bifrost X-Virus-Status: Clean On Sun, 12 Jul 2009 16:37:08 +0000 Clint Adams wrote: > On Sat, May 30, 2009 at 05:53:33PM +0000, Clint Adams wrote: > > As far as I can tell, nothing is included up to this point which > > define __GLIBC__, so the Hurd wasn't getting the > > nanosecond-resolution structs guarded by __USE_MISC > > and thus was not able to use them in Src/cond.c. > > This has nothing to do with /dev/ptmx. > > So it seems that Debian GNU/kFreeBSD is actually hard-coding > a __GLIBC__ define in gcc for some reason. Could someone > think of a sane configure test for these struct members instead, > or is it futile? It should be just a question of #include'ing and testing if either st_atim.tv_nsec or st_atimensec is present in struct stat---however, you'd need to be sure the definitions aren't trodden on by something in system.h. We really need to be sure of that anyway, to ensure consistency, but actually system.h is a bit murky (and I mean a bit murky on the zsh scale, not on the scale of good programming). -- Peter Stephenson Web page now at http://homepage.ntlworld.com/p.w.stephenson/