swscale: try to use mmap only if available
authorMans Rullgard <mans@mansr.com>
Sat, 13 Oct 2012 16:00:16 +0000 (16:00 +0000)
committerMans Rullgard <mans@mansr.com>
Mon, 15 Oct 2012 01:39:49 +0000 (02:39 +0100)
commit95cd815c3663603871a1f2da95846e8f72d4ea96
treecf165c6b29431b3ab242e78998c1a8b877d7764d
parente98b02de5f925a76bfa70ca16388b87da804baa3
swscale: try to use mmap only if available

Some systems, e.g. Minix, have sys/mman.h defining MAP_ANONYMOUS without
providing (working) mmap and friends.  The mmx filter generation code
checks only for MAP_ANONYMOUS, not for availability of mmap itself which
leads to build errors on aforementioned systems.

This changes the conditional compilation to use mmap only if all the
required functions are available.

Signed-off-by: Mans Rullgard <mans@mansr.com>
libswscale/utils.c