Re: [PATCH] Compile sigfe.s with CFLAGS

2015-02-19 Thread Corinna Vinschen
On Feb 19 13:21, Jon TURNEY wrote: > * Makefile.in (sigfe.o): Use CFLAGS. Please apply. Thanks, Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat pgpmlZMUyVfqp.pgp Description: PGP sign

Re: [PATCH] Prototype initstate() etc. if _XOPEN_SOURCE is defined appropriately

2015-02-19 Thread Corinna Vinschen
Hi Jon, On Feb 19 13:00, Jon TURNEY wrote: > * include/cygwin/stdlib.h (initstate, random, setstate, srandom): > Check if __XSI_VISIBLE is set by sys/cdefs.h, rather than testing > for _XOPEN_SOURCE directly, to work correctly when _GNU_SOURCE is > set. Looks good, please

[PATCH] Compile sigfe.s with CFLAGS

2015-02-19 Thread Jon TURNEY
CFLAGS isn't used when compiling the generated file sigfe.s, so if that contains -g, it lacks source debugging information. 2015-02-19 Jon TURNEY * Makefile.in (sigfe.o): Use CFLAGS. Index: cygwin/Makefile.in === RCS

Re: [PATCH] Prototype initstate() etc. if _XOPEN_SOURCE is defined appropriately

2015-02-19 Thread Jon TURNEY
On 13/11/2013 14:37, Jon TURNEY wrote: Not sure if this is wanted, but mesa likes to compile with '-std=c99 D_XOPEN_SOURCE=500', which leads to exciting crashes on x86_64 because initstate() is not prototyped. 2013-11-13 Jon TURNEY * include/cygwin/stdlib.h(initstate, random, setsta