diff options
author | Andreas Kling <kling@serenityos.org> | 2020-07-27 23:39:31 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-07-28 00:03:25 +0200 |
commit | 308d3b764f27427bcfc9f1177487856acf5f1cec (patch) | |
tree | a90afb703ebcf2cc333675a6c1840e9a1ffea585 /Libraries/LibC | |
parent | 2ac5c2278dc9bd1461c5a642ebe1b2c476188e06 (diff) | |
download | serenity-308d3b764f27427bcfc9f1177487856acf5f1cec.zip |
LibC: Move getpagesize() out-of-line
This being inline somehow broke the binutils autoconf scripts. It used
to work, so I suspect that some other change to LibC has caused those
autoconf scripts to go down a new path.
Regardless, this seems perfectly sensible.
Diffstat (limited to 'Libraries/LibC')
-rw-r--r-- | Libraries/LibC/unistd.cpp | 6 | ||||
-rw-r--r-- | Libraries/LibC/unistd.h | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/Libraries/LibC/unistd.cpp b/Libraries/LibC/unistd.cpp index 1bebaf9032..5e69db0e43 100644 --- a/Libraries/LibC/unistd.cpp +++ b/Libraries/LibC/unistd.cpp @@ -745,4 +745,10 @@ long sysconf(int name) int rc = syscall(SC_sysconf, name); __RETURN_WITH_ERRNO(rc, rc, -1); } + +int getpagesize() +{ + return PAGE_SIZE; +} + } diff --git a/Libraries/LibC/unistd.h b/Libraries/LibC/unistd.h index b496bbdaa5..ab6542b43f 100644 --- a/Libraries/LibC/unistd.h +++ b/Libraries/LibC/unistd.h @@ -62,7 +62,7 @@ void sysbeep(); int gettid(); int donate(int tid); int set_process_icon(int icon_id); -inline int getpagesize() { return 4096; } +int getpagesize(); pid_t fork(); int execv(const char* path, char* const argv[]); int execve(const char* filename, char* const argv[], char* const envp[]); |