aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTreehugger Robot <android-test-infra-autosubmit@system.gserviceaccount.com>2024-04-09 17:52:17 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2024-04-09 17:52:17 +0000
commit2f526fb4d1d9221fc06d72d71264e287192a5085 (patch)
tree6484658e69701126ba02c695465c9e3de8740f77
parent252ed5704a08a2ec017d2e0811a27b350dcf84e7 (diff)
parentf666d822bd8c835a1b3c6bf3446269ebccc02987 (diff)
downloadbionic-2f526fb4d1d9221fc06d72d71264e287192a5085.tar.gz
Merge "<sys/shm.h>: fix a hard-coded 4096 page size." into main
-rw-r--r--libc/include/sys/shm.h3
1 files changed, 2 insertions, 1 deletions
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 <sys/cdefs.h>
#include <sys/ipc.h>
#include <sys/types.h>
+#include <unistd.h>
#include <linux/shm.h>
#define shmid_ds shmid64_ds
-#define SHMLBA 4096
+#define SHMLBA getpagesize()
__BEGIN_DECLS