diff --git a/src/prim/unix/prim.c b/src/prim/unix/prim.c index ad6ca2a9..64c95d9e 100644 --- a/src/prim/unix/prim.c +++ b/src/prim/unix/prim.c @@ -31,10 +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 + + // Pick up missing definitions from linux headers. + #if !defined(PR_SET_VMA) + #include // PR_SET_VMA + #endif + #if defined(__GLIBC__) #include // linux mmap flags #else