Debian patch: 216_page_size.diff SDL-1.2
authorSam Lantinga <slouken@libsdl.org>
Sat, 10 Oct 2009 09:59:29 +0000
branchSDL-1.2
changeset 43093aab8b57cbd1
parent 4308 447fd6ae10cf
child 4310 c878006a5948
Debian patch: 216_page_size.diff
src/video/ps2gs/SDL_gsyuv.c
     1.1 --- a/src/video/ps2gs/SDL_gsyuv.c	Sat Oct 10 09:58:32 2009 +0000
     1.2 +++ b/src/video/ps2gs/SDL_gsyuv.c	Sat Oct 10 09:59:29 2009 +0000
     1.3 @@ -180,7 +180,7 @@
     1.4  
     1.5  	/* Allocate a DMA area for pixel conversion */
     1.6  	bpp = this->screen->format->BytesPerPixel;
     1.7 -	map_offset = (mapped_len + (PAGE_SIZE - 1)) & ~(PAGE_SIZE - 1);
     1.8 +	map_offset = (mapped_len + (sysconf(_SC_PAGESIZE) - 1)) & ~(sysconf(_SC_PAGESIZE) - 1);
     1.9  	hwdata->dma_len = hwdata->macroblocks * (16 * 16 + 8 * 8 + 8 * 8) +
    1.10  	                  width * height * bpp +
    1.11  	                  hwdata->macroblocks * (16 * sizeof(long long)) +