diff options
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/pthread.c | 4 |
1 files changed, 3 insertions, 1 deletions
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 <sched.h> #endif #if HAVE_GETPROCESSAFFINITYMASK |