On Mon, May 02, 2011 at 11:59:53AM +0100, Måns Rullgård wrote:
> Diego Biurrun <[email protected]> writes:
> 
> > On some (BSD) systems _POSIX_C_SOURCE masks function definitions in
> > system header files.  Avoid the #define in that case.
> > This allows eliminating some BSD-specific hacks.
> > --- a/configure
> > +++ b/configure
> > @@ -2310,7 +2310,9 @@ if test "$?" != 0; then
> >  
> > -add_cppflags -D_ISOC99_SOURCE -D_POSIX_C_SOURCE=200112
> > +add_cppflags -D_ISOC99_SOURCE
> > +check_func_headers time.h nanosleep -D_POSIX_C_SOURCE=200112 &&
> > +    add_cppflags -D_POSIX_C_SOURCE=200112
> 
> Note, nanosleep was moved to the Base section in POSIX.1-2008.

We need to find a suitable function that does the trick.  I chose
nanosleep because it appeared in the DragonFly BSD build logs.
inet_aton is another candidate that appeared in the build logs.

What about swab/unistd.h, is that suitable?  It seemed to work for
Kovensky / Diogo Franco in a test on FreeBSD, but testing for it
feels somewhat weird since we do not use it anywhere.

Diego
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to