From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7017 invoked from network); 1 Aug 2009 04:17:27 -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.5 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; 1 Aug 2009 04:17:27 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 40232 invoked from network); 1 Aug 2009 04:17:22 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 1 Aug 2009 04:17:22 -0000 Received: (qmail 17146 invoked by alias); 1 Aug 2009 04:17:16 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 27202 Received: (qmail 17125 invoked from network); 1 Aug 2009 04:17:16 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 1 Aug 2009 04:17:16 -0000 Received: from cork.scru.org (cork.scru.org [209.20.67.2]) by bifrost.dotsrc.org (Postfix) with ESMTPS id BD24680EC9A5 for ; Sat, 1 Aug 2009 06:16:58 +0200 (CEST) Received: by cork.scru.org (Postfix, from userid 1000) id 88F6F1043AA; Sat, 1 Aug 2009 04:16:56 +0000 (UTC) Date: Sat, 1 Aug 2009 04:16:56 +0000 From: Clint Adams To: zsh-workers@sunsite.dk Subject: Re: PATCH: _GNU_SOURCE when __GNU__ Message-ID: <20090801041656.GA18622@scru.org> Mail-Followup-To: zsh-workers@sunsite.dk References: <20090530175333.GA21771@scru.org> <20090712163708.GA10163@scru.org> <20090712181807.282a534a@pws-pc> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20090712181807.282a534a@pws-pc> User-Agent: Mutt/1.5.18 (2008-05-17) X-Virus-Scanned: ClamAV 0.94.2/9641/Sat Aug 1 05:14:07 2009 on bifrost X-Virus-Status: Clean On Sun, Jul 12, 2009 at 06:18:07PM +0100, Peter Stephenson wrote: > 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). Since I apparently have no time to do anything useful until November, I might as well unbreak what I broke in the meantime. Index: Src/system.h =================================================================== RCS file: /cvsroot/zsh/zsh/Src/system.h,v retrieving revision 1.54 diff -u -r1.54 system.h --- Src/system.h 30 May 2009 17:55:50 -0000 1.54 +++ Src/system.h 1 Aug 2009 04:14:47 -0000 @@ -37,7 +37,7 @@ #endif #endif -#if defined(__linux) || defined(__GNU__) +#if defined(__linux) || defined(__GNU__) || defined(__GLIBC__) /* * Turn on numerous extensions. * This is in order to get the functions for manipulating /dev/ptmx.