thermferm/thermferm.c

changeset 726
8289078ff7be
parent 717
22dd7ab614e5
child 730
6eba006ed8f5
--- a/thermferm/thermferm.c	Sat May 04 15:43:37 2024 +0200
+++ b/thermferm/thermferm.c	Sat May 04 17:37:47 2024 +0200
@@ -118,6 +118,16 @@
 extern char		*state;
 
 
+#ifndef HAVE_GETTID
+/*
+ * Wrapper for older systems
+ */
+pid_t gettid(void)
+{
+    return (pid_t)syscall(__NR_gettid);
+}
+#endif
+
 
 void help(void)
 {

mercurial