From e4c8f42bb6b4169ff329393621474612f4cce4f5 Mon Sep 17 00:00:00 2001 From: daanx Date: Sun, 2 Jun 2024 16:10:08 -0700 Subject: [PATCH] always include sys/prctl.h on linux to disable THP if large_os_pages are not enabled --- src/prim/unix/prim.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/prim/unix/prim.c b/src/prim/unix/prim.c index 93785b22..63a36f25 100644 --- a/src/prim/unix/prim.c +++ b/src/prim/unix/prim.c @@ -30,9 +30,9 @@ terms of the MIT license. A copy of the license can be found in the file #if defined(__linux__) #include - #if defined(MI_NO_THP) - #include - #endif + //#if defined(MI_NO_THP) + #include // THP disable + //#endif #if defined(__GLIBC__) #include // linux mmap flags #else