fix prctl.h includes for alpine linux/musl (hopefully fixes #1065, #1066, #1067)

This commit is contained in:
Daan 2025-04-08 13:56:31 -07:00
parent bc8eca8bf2
commit 951538d469

View file

@ -32,6 +32,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>
#include <sys/prctl.h> // THP disable, PR_SET_VMA #include <sys/prctl.h> // THP disable, PR_SET_VMA
#if !defined(PR_SET_VMA)
#include <linux/prctl.h>
#endif
#if defined(__GLIBC__) #if defined(__GLIBC__)
#include <linux/mman.h> // linux mmap flags #include <linux/mman.h> // linux mmap flags
#else #else