aboutsummaryrefslogtreecommitdiff
path: root/shm.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2024-04-30 08:47:19 +0200
committerDaniel Eklöf <daniel@ekloef.se>2024-04-30 08:47:19 +0200
commitdd36cce8c47bb0e17a789cf2bd95a51e29b59e78 (patch)
tree0015b63201f71487a1ea674b6fb26879946cb6ff /shm.c
parent966553a9dbdeda56be5a1e5442c9893aed7fcf85 (diff)
downloadwbg-dd36cce8c47bb0e17a789cf2bd95a51e29b59e78.tar.gz
shm: MFD_NOEXEC_SEAL is not defined by musl libc
Closes #11
Diffstat (limited to 'shm.c')
-rw-r--r--shm.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/shm.c b/shm.c
index bd4ce26..c0fe0bc 100644
--- a/shm.c
+++ b/shm.c
@@ -19,6 +19,10 @@
#define MAP_UNINITIALIZED 0
#endif
+#if !defined(MFD_NOEXEC_SEAL)
+ #define MFD_NOEXEC_SEAL 0
+#endif
+
static void
buffer_destroy(struct buffer *buf)
{