mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-09-04 20:40:09 +00:00
17 lines
328 B
Diff
17 lines
328 B
Diff
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
|
|
|
|
|