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

Re: [PATCH v2] define _GNU_SOURCE



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