diff options
author | Stanislav Brabec <utx@penguin.cz> | 2008-02-19 22:59:18 +0000 |
---|---|---|
committer | Stanislav Brabec <utx@penguin.cz> | 2008-02-19 22:59:18 +0000 |
commit | 62adfb2470ab84c106ad6fe4e169620f1477beb0 (patch) | |
tree | 592aad5f9bda6ad3f993e151ddf9e9795b5a5436 /packages/libsdl/files/pagesize.patch | |
parent | 74a532e4bc5f8b037d050a0a1fb66ea35eeac1ec (diff) | |
parent | 2999625c9793012541dee694ef993d35e630af1f (diff) |
merge of '9a5df4f82194968b8ea8a94d7effc5bf61c1e650'
and 'cb1970d64a9cdb9559e137f509557905fbc174b5'
Diffstat (limited to 'packages/libsdl/files/pagesize.patch')
-rw-r--r-- | packages/libsdl/files/pagesize.patch | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/packages/libsdl/files/pagesize.patch b/packages/libsdl/files/pagesize.patch new file mode 100644 index 0000000000..ea9ea9849b --- /dev/null +++ b/packages/libsdl/files/pagesize.patch @@ -0,0 +1,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); |