pthread: include sys/types.h before sys/sysctl.h
authorJanne Grunau <janne-libav@jannau.net>
Fri, 23 Dec 2011 09:14:15 +0000 (10:14 +0100)
committerJanne Grunau <janne-libav@jannau.net>
Fri, 23 Dec 2011 13:40:39 +0000 (14:40 +0100)
Fixes compilation on FreeBSD with clang 3.

libavcodec/pthread.c

index 0b57156..8914150 100644 (file)
@@ -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"