Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: PATCH: _GNU_SOURCE when __GNU__



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