Skip to content

Commit

Permalink
threads: always include necessary headers for number of CPUs detection
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Janne Grunau committed Dec 31, 2011
1 parent e4e3025 commit 937ff3a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions libavcodec/pthread.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
#if HAVE_SYS_PARAM_H
#include <sys/param.h>
#endif
Expand Down

0 comments on commit 937ff3a

Please sign in to comment.