1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

build: Drop check for sys/mman.h in favor of mmap() check

We already rely on just mmap() in other places.
This commit is contained in:
Diego Biurrun 2017-09-24 20:13:40 +02:00
parent e7168d4c0c
commit 29ccc641b1
2 changed files with 1 additions and 3 deletions

2
configure vendored
View File

@ -1578,7 +1578,6 @@ HEADERS_LIST="
poll_h
soundcard_h
stdatomic_h
sys_mman_h
sys_param_h
sys_resource_h
sys_select_h
@ -4662,7 +4661,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

View File

@ -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