Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: _GNU_SOURCE when __GNU__
- X-seq: zsh-workers 27202
- From: Clint Adams <clint@xxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: Re: PATCH: _GNU_SOURCE when __GNU__
- Date: Sat, 1 Aug 2009 04:16:56 +0000
- In-reply-to: <20090712181807.282a534a@pws-pc>
- Mail-followup-to: zsh-workers@xxxxxxxxxx
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <20090530175333.GA21771@xxxxxxxx> <20090712163708.GA10163@xxxxxxxx> <20090712181807.282a534a@pws-pc>
On Sun, Jul 12, 2009 at 06:18:07PM +0100, Peter Stephenson wrote:
> It should be just a question of #include'ing <sys/stat.h> 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.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author