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

2013-11-13 Thread Corinna Vinschen
On Nov 13 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, r

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

2013-11-13 Thread Christopher Faylor
On Wed, Nov 13, 2013 at 02:37:00PM +, 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

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

2013-11-13 Thread Jon TURNEY
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, setstate, srandom) : Prototype if not _