On 2011-12-25 11:36:47 +0100, Janne Grunau wrote: > Since the conditions for the actual usage are more specific a less > preferred method can be used. This would cause compilation errors > because necessary headers are not included. > --- > libavcodec/pthread.c | 6 ++++-- > 1 files changed, 4 insertions(+), 2 deletions(-) > > diff --git a/libavcodec/pthread.c b/libavcodec/pthread.c > index f842edf..9d7dd1a 100644 > --- a/libavcodec/pthread.c > +++ b/libavcodec/pthread.c > @@ -34,9 +34,11 @@ > #if HAVE_SCHED_GETAFFINITY > #define _GNU_SOURCE > #include <sched.h> > -#elif HAVE_GETSYSTEMINFO > +#endif > +#if HAVE_GETSYSTEMINFO > #include <windows.h> > -#elif HAVE_SYSCTL > +#endif > +#if HAVE_SYSCTL > #include <sys/types.h> > #include <sys/sysctl.h> > #endif > --
ping _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
