From 06816deb78913c84e72119970b32998e4c23243a Mon Sep 17 00:00:00 2001 From: Ali Mohammad Pur Date: Mon, 12 Dec 2022 18:09:24 +0330 Subject: [PATCH] AK: Don't try to include on windows for PAGE_SIZE --- AK/Platform.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/AK/Platform.h b/AK/Platform.h index e8104d208c..534a0ab46b 100644 --- a/AK/Platform.h +++ b/AK/Platform.h @@ -168,16 +168,19 @@ #endif #ifndef AK_OS_SERENITY +# ifdef AK_OS_WINDOWS +// FIXME: No idea where to get this, but it's 4096 anyway :^) +# define PAGE_SIZE 4096 // On macOS (at least Mojave), Apple's version of this header is not wrapped // in extern "C". -# ifdef AK_OS_MACOS +# elif defined(AK_OS_MACOS) extern "C" { # endif # include # undef PAGE_SIZE # define PAGE_SIZE sysconf(_SC_PAGESIZE) # ifdef AK_OS_MACOS -}; +} # endif #endif