From 60a6e931aef8cd3081ab8c6c2fd61e101e529229 Mon Sep 17 00:00:00 2001 From: Octavian Oncescu Date: Mon, 7 Apr 2025 21:41:54 +0300 Subject: [PATCH] Fix alpine builds --- src/prim/unix/prim.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/prim/unix/prim.c b/src/prim/unix/prim.c index ad6ca2a9..cc90606f 100644 --- a/src/prim/unix/prim.c +++ b/src/prim/unix/prim.c @@ -31,11 +31,13 @@ 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__) + #if !defined(PR_SET_VMA) + #include // PR_SET_VMA + #endif #include // linux mmap flags #else #include @@ -70,7 +72,7 @@ terms of the MIT license. A copy of the license can be found in the file #define MADV_FREE POSIX_MADV_FREE #endif - + //------------------------------------------------------------------------------------ // Use syscalls for some primitives to allow for libraries that override open/read/close etc. // and do allocation themselves; using syscalls prevents recursion when mimalloc is