From f666d822bd8c835a1b3c6bf3446269ebccc02987 Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Tue, 9 Apr 2024 16:40:27 +0000 Subject: [PATCH] : fix a hard-coded 4096 page size. Change-Id: I932b1ea44ab6a54a2e4d2bcd1577c6f5859f583a --- libc/include/sys/shm.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libc/include/sys/shm.h b/libc/include/sys/shm.h index fb6f20cf4..8ab3d9ab9 100644 --- a/libc/include/sys/shm.h +++ b/libc/include/sys/shm.h @@ -36,11 +36,12 @@ #include #include #include +#include #include #define shmid_ds shmid64_ds -#define SHMLBA 4096 +#define SHMLBA getpagesize() __BEGIN_DECLS