diff --git a/libavcodec/pthread.c b/libavcodec/pthread.c index ed6f0e1171..b55cccf200 100644 --- a/libavcodec/pthread.c +++ b/libavcodec/pthread.c @@ -32,7 +32,9 @@ #include "config.h" #if HAVE_SCHED_GETAFFINITY -#define _GNU_SOURCE +#ifndef _GNU_SOURCE +# define _GNU_SOURCE +#endif #include #endif #if HAVE_GETPROCESSAFFINITYMASK