Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [PATCH v2] define _GNU_SOURCE
- X-seq: zsh-workers 28996
- From: Peter Stephenson <Peter.Stephenson@xxxxxxx>
- To: Valentin Ochs <a@xxxxxx>
- Subject: Re: [PATCH v2] define _GNU_SOURCE
- Date: Thu, 14 Apr 2011 09:35:23 +0100
- Cc: <zsh-workers@xxxxxxx>
- In-reply-to: <20110412130929.GG5881@erwin>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- Organization: Cambridge Silicon Radio
- References: <20110412130929.GG5881@erwin>
On Tue, 12 Apr 2011 15:09:32 +0200
Valentin Ochs <a@xxxxxx> wrote:
> -#if defined(__linux) || defined(__GNU__) || defined(__GLIBC__)
> /*
> * Turn on numerous extensions.
> * This is in order to get the functions for manipulating /dev/ptmx.
> */
> #define _GNU_SOURCE 1
> -#endif
> +#define _POSIX_C_SOURCE 200809L
Looks like we'll need to #ifdef these for the appropriate system, since
it's causing mayhem elsewhere. Can you provide a preprocessor test for
the system you're fixing?
Thanks.
--
Peter Stephenson <pws@xxxxxxx> Software Engineer
Tel: +44 (0)1223 692070 Cambridge Silicon Radio Limited
Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, UK
Member of the CSR plc group of companies. CSR plc registered in England and Wales, registered number 4187346, registered office Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, United Kingdom
Messages sorted by:
Reverse Date,
Date,
Thread,
Author