1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 15:27:35 +00:00

Kernel: Add _SC_PAGESIZE to sysconf

This unbreaks the gcc and binutils ports.
Previously, when _SC_PAGESIZE was missing, these packages opted to
use their own versions of getpagesize which made their build fail
because of conflicting definitions of the function.
This commit is contained in:
Itamar 2020-07-31 18:41:19 +03:00 committed by Andreas Kling
parent cf78c16afd
commit 5cd7159629
2 changed files with 4 additions and 0 deletions

View file

@ -58,6 +58,7 @@
enum {
_SC_NPROCESSORS_CONF,
_SC_NPROCESSORS_ONLN,
_SC_PAGESIZE,
};
#define PERF_EVENT_MALLOC 1