Are we really ready to do this? I thought the idea was we were going to have each routine that needed it include the BSD/POSIX #defines so that they document their need for this on a case-by-case basis.
On Fri, Dec 12, 2014 at 6:31 AM, Maxim Uvarov <[email protected]> wrote: > > Define _POSIX_C_SOURCE and _BSD_SOURCE to make gcc accept > system calls and turn on -std=c99. > > Signed-off-by: Maxim Uvarov <[email protected]> > --- > configure.ac | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/configure.ac b/configure.ac > index 2f27261..d9167a5 100644 > --- a/configure.ac > +++ b/configure.ac > @@ -179,6 +179,8 @@ ODP_CFLAGS="$ODP_CFLAGS -Wmissing-declarations > -Wold-style-definition -Wpointer- > ODP_CFLAGS="$ODP_CFLAGS -Wcast-align -Wnested-externs -Wcast-qual > -Wformat-nonliteral" > ODP_CFLAGS="$ODP_CFLAGS -Wformat-security -Wundef -Wwrite-strings" > > +ODP_CFLAGS="$ODP_CFLAGS -std=c99 -D_BSD_SOURCE -D_POSIX_C_SOURCE=200809L" > + > ########################################################################## > # Default include setup > ########################################################################## > -- > 1.8.5.1.163.gd7aced9 > > > _______________________________________________ > lng-odp mailing list > [email protected] > http://lists.linaro.org/mailman/listinfo/lng-odp >
_______________________________________________ lng-odp mailing list [email protected] http://lists.linaro.org/mailman/listinfo/lng-odp
