summaryrefslogtreecommitdiff
path: root/recipes/libsdl/files/pagesize.patch
blob: ea9ea9849b5383bdf6ce7ccad34f869a5e458fe2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Remove obsolete non-portable macro.

Index: SDL-1.2.9/src/video/fbcon/SDL_fbvideo.c
===================================================================
--- SDL-1.2.9.orig/src/video/fbcon/SDL_fbvideo.c
+++ SDL-1.2.9/src/video/fbcon/SDL_fbvideo.c
@@ -405,7 +405,7 @@ static int FB_VideoInit(_THIS, SDL_Pixel
 
 	/* Memory map the device, compensating for buggy PPC mmap() */
 	mapped_offset = (((long)finfo.smem_start) -
-	                (((long)finfo.smem_start)&~(PAGE_SIZE-1)));
+	                (((long)finfo.smem_start)&~(getpagesize()-1)));
 	mapped_memlen = finfo.smem_len+mapped_offset;
 	mapped_mem = mmap(NULL, mapped_memlen,
 	                  PROT_READ|PROT_WRITE, MAP_SHARED, console_fd, 0);