blob: 6e7b165f8175727ca8aae2d44d028d4ec090f072 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
http://bugs.gentoo.org/159923
--- src/video/fbcon/SDL_fbvideo.c
+++ src/video/fbcon/SDL_fbvideo.c
@@ -32,6 +32,10 @@
#include <asm/page.h> /* For definition of PAGE_SIZE */
#include <linux/vt.h>
+#ifndef PAGE_SIZE
+# define PAGE_SIZE sysconf(_SC_PAGE_SIZE)
+#endif
+
#include "SDL_video.h"
#include "SDL_mouse.h"
#include "../SDL_sysvideo.h"
--- src/video/ps2gs/SDL_gsyuv.c
+++ src/video/ps2gs/SDL_gsyuv.c
@@ -29,6 +29,10 @@
#include <sys/mman.h>
#include <asm/page.h> /* For definition of PAGE_SIZE */
+#ifndef PAGE_SIZE
+# define PAGE_SIZE sysconf(_SC_PAGE_SIZE)
+#endif
+
#include "SDL_video.h"
#include "SDL_gsyuv_c.h"
#include "../SDL_yuvfuncs.h"
|