From 4b4642f28e0e8917638dba51e7e2a7c9979d0d32 Mon Sep 17 00:00:00 2001 From: Yuval Deutscher Date: Sun, 6 Apr 2025 13:58:10 +0300 Subject: [PATCH] unix: only include linux headers on glibc On musl-libc the required types for `prctl` are defined in `sys/prctl.h` and including `linux/prctl.h` fails either because the file does not exist or because it redefines the types. --- src/prim/unix/prim.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/prim/unix/prim.c b/src/prim/unix/prim.c index ad6ca2a9..d108944b 100644 --- a/src/prim/unix/prim.c +++ b/src/prim/unix/prim.c @@ -31,11 +31,11 @@ terms of the MIT license. A copy of the license can be found in the file #if defined(__linux__) #include - #include // PR_SET_VMA //#if defined(MI_NO_THP) #include // THP disable //#endif #if defined(__GLIBC__) + #include // PR_SET_VMA #include // linux mmap flags #else #include