summaryrefslogtreecommitdiff
path: root/libavcodec/pthread.c
diff options
context:
space:
mode:
authorJanne Grunau <janne-libav@jannau.net>2011-12-23 10:14:15 +0100
committerMichael Niedermayer <michaelni@gmx.at>2011-12-23 16:08:39 +0100
commit8d4668cc5f6c9147ed5bae978c7100fbbdf306a6 (patch)
tree092d17bbba5aa3de88d2653c664062898989241a /libavcodec/pthread.c
parentc25c7ba87c56917f2411bb70cc2d73a795bdd66d (diff)
downloadffmpeg-8d4668cc5f6c9147ed5bae978c7100fbbdf306a6.tar.gz
pthread: include sys/types.h before sys/sysctl.h
Fixes compilation on FreeBSD with clang 3. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/pthread.c')
-rw-r--r--libavcodec/pthread.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/pthread.c b/libavcodec/pthread.c
index e8bc318711..eb3e7d40b8 100644
--- a/libavcodec/pthread.c
+++ b/libavcodec/pthread.c
@@ -37,8 +37,8 @@
#elif HAVE_GETSYSTEMINFO
#include <windows.h>
#elif HAVE_SYSCTL
-#include <sys/sysctl.h>
#include <sys/types.h>
+#include <sys/sysctl.h>
#endif
#include "avcodec.h"