[FFmpeg-cvslog] threads: test for sys/param.h and include it for sysctl on OpenBSD

Janne Grunau git at videolan.org
Wed Dec 28 02:51:15 CET 2011


ffmpeg | branch: master | Janne Grunau <janne-libav at jannau.net> | Sat Dec 24 00:23:55 2011 +0100| [06bb590558595959089a8f4a083ce256246d56a6] | committer: Janne Grunau

threads: test for sys/param.h and include it for sysctl on OpenBSD

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

 configure            |    2 ++
 libavcodec/pthread.c |    3 +++
 2 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/configure b/configure
index 9b510de..413c02f 100755
--- a/configure
+++ b/configure
@@ -1140,6 +1140,7 @@ HAVE_LIST="
     symver_gnu_asm
     sysctl
     sys_mman_h
+    sys_param_h
     sys_resource_h
     sys_select_h
     sys_soundcard_h
@@ -2871,6 +2872,7 @@ check_header dxva2api.h
 check_header malloc.h
 check_header poll.h
 check_header sys/mman.h
+check_header sys/param.h
 check_header sys/resource.h
 check_header sys/select.h
 check_header vdpau/vdpau.h
diff --git a/libavcodec/pthread.c b/libavcodec/pthread.c
index a44500b..4356b32 100644
--- a/libavcodec/pthread.c
+++ b/libavcodec/pthread.c
@@ -37,6 +37,9 @@
 #elif HAVE_GETSYSTEMINFO
 #include <windows.h>
 #elif HAVE_SYSCTL
+#if HAVE_SYS_PARAM_H
+#include <sys/param.h>
+#endif
 #include <sys/types.h>
 #include <sys/sysctl.h>
 #endif



More information about the ffmpeg-cvslog mailing list