Also include required headers while testing for sysctl in configure.
---
configure | 5 ++++-
libavcodec/pthread.c | 3 +++
2 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/configure b/configure
index 9b510de..19e89ca 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
@@ -2857,9 +2858,10 @@ check_func strerror_r
check_func strptime
check_func strtok_r
check_func sched_getaffinity
-check_func sysctl
check_func_headers io.h setmode
check_func_headers lzo/lzo1x.h lzo1x_999_compress
+check_func_headers "sys/types.h sys/sysctl.h" sysctl ||
+ check_func_headers "sys/types.h sys/param.h sys/sysctl.h" sysctl
check_lib2 "windows.h psapi.h" GetProcessMemoryInfo -lpsapi
check_func_headers windows.h GetProcessTimes
check_func_headers windows.h GetSystemInfo
@@ -2871,6 +2873,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 9d7dd1a..e567b66 100644
--- a/libavcodec/pthread.c
+++ b/libavcodec/pthread.c
@@ -39,6 +39,9 @@
#include <windows.h>
#endif
#if HAVE_SYSCTL
+#if HAVE_SYS_PARAM_H
+#include <sys/param.h>
+#endif
#include <sys/types.h>
#include <sys/sysctl.h>
#endif
--
1.7.8.1
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel