]> git.sesse.net Git - ffmpeg/commitdiff
threads: test for sys/param.h and include it for sysctl on OpenBSD
authorJanne Grunau <janne-libav@jannau.net>
Fri, 23 Dec 2011 23:23:55 +0000 (00:23 +0100)
committerJanne Grunau <janne-libav@jannau.net>
Tue, 27 Dec 2011 15:09:41 +0000 (16:09 +0100)
configure
libavcodec/pthread.c

index 9b510de878f911d14c66ddc0e617785d00156bf7..413c02fae8de31b07266f1a57a61790e86f11207 100755 (executable)
--- 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
index a44500b0361adedfb468d70d9a043df1001fbfc4..4356b3219207bbf26fb59a737bcea4c0e5b1a1ff 100644 (file)
@@ -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