summaryrefslogtreecommitdiff
path: root/recipes/directfb/files/getpagesize.patch
blob: 256b8db290ac785d736859407f39e1fdc6039055 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
diff --git a/lib/direct/system.c b/lib/direct/system.c
index 8dd3f12..0731fa2 100644
--- a/lib/direct/system.c
+++ b/lib/direct/system.c
@@ -36,8 +36,9 @@
 
 #if HAVE_ASM_PAGE_H
 #include <asm/page.h>
-#else
-#define PAGE_SIZE   sysconf( _SC_PAGESIZE )
+#endif
+#ifndef PAGE_SIZE
+# define PAGE_SIZE (getpagesize())
 #endif