src/video/ps2gs/SDL_gsyuv.c
changeset 3626 596468a8459e
parent 2859 99210400e8b9
     1.1 --- a/src/video/ps2gs/SDL_gsyuv.c	Sun Jan 10 06:18:39 2010 +0000
     1.2 +++ b/src/video/ps2gs/SDL_gsyuv.c	Sun Jan 10 06:32:41 2010 +0000
     1.3 @@ -184,7 +184,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)) +