diff options
Diffstat (limited to 'recipes-graphics/directfb/files/getpagesize.patch')
-rw-r--r-- | recipes-graphics/directfb/files/getpagesize.patch | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/recipes-graphics/directfb/files/getpagesize.patch b/recipes-graphics/directfb/files/getpagesize.patch new file mode 100644 index 0000000000..256b8db290 --- /dev/null +++ b/recipes-graphics/directfb/files/getpagesize.patch | |||
@@ -0,0 +1,16 @@ | |||
1 | diff --git a/lib/direct/system.c b/lib/direct/system.c | ||
2 | index 8dd3f12..0731fa2 100644 | ||
3 | --- a/lib/direct/system.c | ||
4 | +++ b/lib/direct/system.c | ||
5 | @@ -36,8 +36,9 @@ | ||
6 | |||
7 | #if HAVE_ASM_PAGE_H | ||
8 | #include <asm/page.h> | ||
9 | -#else | ||
10 | -#define PAGE_SIZE sysconf( _SC_PAGESIZE ) | ||
11 | +#endif | ||
12 | +#ifndef PAGE_SIZE | ||
13 | +# define PAGE_SIZE (getpagesize()) | ||
14 | #endif | ||
15 | |||
16 | |||