mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-02 16:25:34 +03:00
AK: Don't try to include <unistd.h> on windows for PAGE_SIZE
This commit is contained in:
parent
b81a457de5
commit
06816deb78
Notes:
sideshowbarker
2024-07-18 22:57:59 +09:00
Author: https://github.com/alimpfard Commit: https://github.com/SerenityOS/serenity/commit/06816deb78 Pull-request: https://github.com/SerenityOS/serenity/pull/16445 Reviewed-by: https://github.com/AtkinsSJ Reviewed-by: https://github.com/linusg
@ -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 <unistd.h>
|
||||
# undef PAGE_SIZE
|
||||
# define PAGE_SIZE sysconf(_SC_PAGESIZE)
|
||||
# ifdef AK_OS_MACOS
|
||||
};
|
||||
}
|
||||
# endif
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user