always include sys/prctl.h on linux to disable THP if large_os_pages are not enabled

This commit is contained in:
daanx 2024-06-02 16:10:08 -07:00
parent f9076a5cf8
commit e4c8f42bb6

View file

@ -30,9 +30,9 @@ terms of the MIT license. A copy of the license can be found in the file
#if defined(__linux__) #if defined(__linux__)
#include <features.h> #include <features.h>
#if defined(MI_NO_THP) //#if defined(MI_NO_THP)
#include <sys/prctl.h> #include <sys/prctl.h> // THP disable
#endif //#endif
#if defined(__GLIBC__) #if defined(__GLIBC__)
#include <linux/mman.h> // linux mmap flags #include <linux/mman.h> // linux mmap flags
#else #else