[FFmpeg-cvslog] pthread: include sys/types.h before sys/sysctl.h
Janne Grunau
git at videolan.org
Sat Dec 24 01:00:30 CET 2011
ffmpeg | branch: master | Janne Grunau <janne-libav at jannau.net> | Fri Dec 23 10:14:15 2011 +0100| [846dca1aa315ebb65845a8e4774a31e368cc463d] | committer: Janne Grunau
pthread: include sys/types.h before sys/sysctl.h
Fixes compilation on FreeBSD with clang 3.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=846dca1aa315ebb65845a8e4774a31e368cc463d
---
libavcodec/pthread.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/libavcodec/pthread.c b/libavcodec/pthread.c
index 0b57156..8914150 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