[MPlayer-cvslog] CVS: main/postproc swscale.c,1.152,1.153

Reimar Döffinger CVS syncmail at mplayerhq.hu
Tue Feb 22 15:40:46 CET 2005


CVS change done by Reimar Döffinger CVS

Update of /cvsroot/mplayer/main/postproc
In directory mail:/var2/tmp/cvs-serv5179/postproc

Modified Files:
	swscale.c 
Log Message:
fix for MAP_ANON vs. MAP_ANONYMOUS fix...


Index: swscale.c
===================================================================
RCS file: /cvsroot/mplayer/main/postproc/swscale.c,v
retrieving revision 1.152
retrieving revision 1.153
diff -u -r1.152 -r1.153
--- swscale.c	16 Feb 2005 23:46:59 -0000	1.152
+++ swscale.c	22 Feb 2005 14:40:44 -0000	1.153
@@ -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




More information about the MPlayer-cvslog mailing list