Diego Biurrun <[email protected]> writes: > On Mon, May 16, 2011 at 02:59:17PM +0200, Luca Barbato wrote: >> On 5/15/11 3:29 PM, Diego Biurrun wrote: >>> In -std=c99 mode GCC defines __STRICT_ANSI__ to hide non-ANSI interfaces. >>> This causes declarations for some POSIX functions to be omitted from system >>> headers, which causes compilation failures. >> >> Might be useful adding a generic check and append -U__STRICT_ANSI__ when >> needed. (e.g. linux-newlib) > > I submitted a patch that implements that check, but Mans is not a fan. > I don't care how it is implemented as long as we start building out of > the box. > > Mans, please make your choice between this patch and the detection one.
The detection here has all the same problems as detecting the _POSIX_C_SOURCE issues on BSD. Since no solution is perfect, I prefer simply adding the flag for the systems known to need it like we ended up doing with the other ones. -- Måns Rullgård [email protected] _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
