--- CMakeLists.txt.orig	2022-06-10 10:09:05 UTC
+++ CMakeLists.txt
@@ -394,6 +394,9 @@ find_package(Hwloc)
       set(ENABLE_HWLOC ON CACHE BOOL "Hwloc" FORCE)
   endif()
 
+include(CheckIncludeFiles)
+check_include_files("sys/types.h;sys/sysctl.h" HAVE_SYSCTL_H)
+
 
 include(sanitizers)
 
