• Mans Rullgard's avatar
    swscale: try to use mmap only if available · 95cd815c
    Mans Rullgard authored
    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: 's avatarMans Rullgard <mans@mansr.com>
    95cd815c
utils.c 60 KB