aboutsummaryrefslogtreecommitdiffstats
path: root/main/cjdns/musl-compat.patch
blob: e645f0ed2f4a91e0f17d4308ac6da7a16aec111a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
diff --git a/util/Seccomp.c b/util/Seccomp.c
index e8a0ed7..7e724c4 100644
--- a/util/Seccomp.c
+++ b/util/Seccomp.c
@@ -337,6 +337,12 @@ static struct sock_fprog* mkFilter(struct Allocator* alloc, struct Except* eh)
         #ifdef __NR_getsockname
         IFEQ(__NR_getsockname, success),
         #endif
+
+        // musl free() calls madvise()
+        #ifdef __NR_madvise
+        IFEQ(__NR_madvise, success),
+        #endif
+
         RET(SECCOMP_RET_TRAP),

         LABEL(socket),