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__)
#include <features.h>
#if defined(MI_NO_THP)
#include <sys/prctl.h>
#endif
//#if defined(MI_NO_THP)
#include <sys/prctl.h> // THP disable
//#endif
#if defined(__GLIBC__)
#include <linux/mman.h> // linux mmap flags
#else