zsh-workers
 help / color / mirror / code / Atom feed
From: Clint Adams <clint@zsh.org>
To: zsh-workers@sunsite.dk
Subject: Re: PATCH: _GNU_SOURCE when __GNU__
Date: Sat, 1 Aug 2009 04:16:56 +0000	[thread overview]
Message-ID: <20090801041656.GA18622@scru.org> (raw)
In-Reply-To: <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.


      reply	other threads:[~2009-08-01  4:17 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-30 17:53 Clint Adams
2009-07-12 16:37 ` Clint Adams
2009-07-12 17:18   ` Peter Stephenson
2009-08-01  4:16     ` Clint Adams [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20090801041656.GA18622@scru.org \
    --to=clint@zsh.org \
    --cc=zsh-workers@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).