--- CMakeLists.txt.orig	2025-05-21 11:53:16 UTC
+++ CMakeLists.txt
@@ -466,6 +466,9 @@ endfunction()
   endif()
 endfunction()
 
+include(CheckIncludeFiles)
+check_include_files("sys/sysctl.h" HAVE_SYSCTL_H)
+
 
 function(rename_if_different SRC DST EXEC)
   if(EXISTS "${DST}")
