Diogo Franco <[email protected]> writes: > FreeBSD, unlike (whatever OS the default -D are trying to fix), > defines every symbol by default; conformance defines are supposed to > restrict FreeBSD's definitions to only the requested specification. > > Undeffing the flags prevents them from disabling __BSD_VISIBLE, which > is only defined when no conformance flags are defined. It should not be > defined by the user. > --- > configure | 1 + > 1 files changed, 1 insertions(+), 0 deletions(-) > > diff --git a/configure b/configure > index 2b5aeab..1b3c0e2 100755 > --- a/configure > +++ b/configure > @@ -2379,6 +2379,7 @@ case $target_os in > ;; > freebsd) > enable malloc_aligned > + add_cppflags -U_ISOC99_SOURCE -U_POSIX_C_SOURCE > ;; > bsd/os) > add_extralibs -lpoll -lgnugetopt > -- > 1.7.4.5
The correct solution is to not define those things in the first place on BSD. -- Måns Rullgård [email protected] _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
