Mercurial > mplayer.hg
changeset 14761:f6284dd2516e
fix for MAP_ANON vs. MAP_ANONYMOUS fix...
author | reimar |
---|---|
date | Tue, 22 Feb 2005 14:40:44 +0000 |
parents | eed290f1e53b |
children | b2cb91b9b4e0 |
files | configure postproc/swscale.c |
diffstat | 2 files changed, 4 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/configure Tue Feb 22 12:53:31 2005 +0000 +++ b/configure Tue Feb 22 14:40:44 2005 +0000 @@ -6998,10 +6998,6 @@ $_def_mman $_def_mman_has_map_failed -#ifndef MAP_ANONYMOUS -#define MAP_ANONYMOUS MAP_ANON -#endif - /* Define this if you have the elf dynamic linker -ldl library */ $_def_dl
--- a/postproc/swscale.c Tue Feb 22 12:53:31 2005 +0000 +++ b/postproc/swscale.c Tue Feb 22 14:40:44 2005 +0000 @@ -64,6 +64,9 @@ #endif #ifdef HAVE_SYS_MMAN_H #include <sys/mman.h> +#if defined(MAP_ANON) && !defined(MAP_ANONYMOUS) +#define MAP_ANONYMOUS MAP_ANON +#endif #endif #include "swscale.h" #include "swscale_internal.h" @@ -2070,7 +2073,7 @@ if(c->canMMX2BeUsed && (flags & SWS_FAST_BILINEAR)) { #define MAX_FUNNY_CODE_SIZE 10000 -#ifdef HAVE_SYS_MMAN_H +#ifdef MAP_ANONYMOUS c->funnyYCode = (uint8_t*)mmap(NULL, MAX_FUNNY_CODE_SIZE, PROT_EXEC | PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANONYMOUS, 0, 0); c->funnyUVCode = (uint8_t*)mmap(NULL, MAX_FUNNY_CODE_SIZE, PROT_EXEC | PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANONYMOUS, 0, 0); #else