diff options
author | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2005-02-22 14:40:44 +0000 |
---|---|---|
committer | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2005-02-22 14:40:44 +0000 |
commit | bd108442829df3619aad8ea845bb5788e25730da (patch) | |
tree | 122e8002aab787796ec85fa23f4027360d81e398 /postproc | |
parent | 294154615cd808d05ed018d9d24af500f626adbb (diff) |
fix for MAP_ANON vs. MAP_ANONYMOUS fix...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14762 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'postproc')
-rw-r--r-- | postproc/swscale.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/postproc/swscale.c b/postproc/swscale.c index 89fcc0a55d..291bc940ef 100644 --- a/postproc/swscale.c +++ b/postproc/swscale.c @@ -64,6 +64,9 @@ untested special converters #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 @@ SwsContext *sws_getContext(int srcW, int srcH, int origSrcFormat, int dstW, int 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 |