[FFmpeg-cvslog] pthread: include sys/types.h before sys/sysctl.h

Janne Grunau git at videolan.org
Fri Dec 23 16:10:21 CET 2011


ffmpeg | branch: master | Janne Grunau <janne-libav at jannau.net> | Fri Dec 23 10:14:15 2011 +0100| [8d4668cc5f6c9147ed5bae978c7100fbbdf306a6] | committer: Michael Niedermayer

pthread: include sys/types.h before sys/sysctl.h

Fixes compilation on FreeBSD with clang 3.

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=8d4668cc5f6c9147ed5bae978c7100fbbdf306a6
---

 libavcodec/pthread.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavcodec/pthread.c b/libavcodec/pthread.c
index e8bc318..eb3e7d4 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"



More information about the ffmpeg-cvslog mailing list