--- a/thermferm/thermferm.h Sat May 04 15:43:37 2024 +0200 +++ b/thermferm/thermferm.h Sat May 04 17:37:47 2024 +0200 @@ -20,6 +20,7 @@ #include <sys/socket.h> #include <sys/stat.h> #include <sys/time.h> +#include <sys/syscall.h> #include <sys/un.h> #include <sys/utsname.h> #include <ifaddrs.h> @@ -54,6 +55,12 @@ #endif + +#ifndef HAVE_GETTID +pid_t gettid(void); +#endif + + /* * Thread locks */