We already rely on just mmap() in other places.
---
configure | 2 --
libswscale/utils.c | 2 +-
2 files changed, 1 insertion(+), 3 deletions(-)
diff --git a/configure b/configure
index 94a29bcf49..af941fc8e4 100755
--- a/configure
+++ b/configure
@@ -1573,7 +1573,6 @@ HEADERS_LIST="
poll_h
soundcard_h
stdatomic_h
- sys_mman_h
sys_param_h
sys_resource_h
sys_select_h
@@ -4647,7 +4646,6 @@ check_header io.h
check_header mach/mach_time.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
diff --git a/libswscale/utils.c b/libswscale/utils.c
index 786774f241..d94be5a50b 100644
--- a/libswscale/utils.c
+++ b/libswscale/utils.c
@@ -27,7 +27,7 @@
#include <math.h>
#include <stdio.h>
#include <string.h>
-#if HAVE_SYS_MMAN_H
+#if HAVE_MMAP
#include <sys/mman.h>
#if defined(MAP_ANON) && !defined(MAP_ANONYMOUS)
#define MAP_ANONYMOUS MAP_ANON
--
2.11.0
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel