Author: "logesh.sekar" <logesh.sekar@timesys.com>
Date: Thu, 25 Jun 2026 18:11:30 +0530

---
 lib/wp/log.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/lib/wp/log.c b/lib/wp/log.c
index 084f3ad..ddf0f88 100644
--- a/lib/wp/log.c
+++ b/lib/wp/log.c
@@ -11,6 +11,11 @@
 #include <pipewire/pipewire.h>
 #include <spa/support/log.h>
 
+#if defined(__GLIBC__) && (__GLIBC__ < 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ < 30))
+#include <sys/syscall.h>
+#define gettid() ((pid_t)syscall(SYS_gettid))
+#endif
+
 WP_DEFINE_LOCAL_LOG_TOPIC ("wp-log")
 
 /*!
-- 
2.34.1

