From 647441c06c31625ddd04385d6a8ed2e46ca81af6 Mon Sep 17 00:00:00 2001 From: Jason Dellaluce Date: Wed, 22 Feb 2023 16:13:10 +0000 Subject: [PATCH] fix(userspace/falco): solve gettid compilation issues Signed-off-by: Jason Dellaluce --- userspace/falco/app/restart_handler.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/userspace/falco/app/restart_handler.cpp b/userspace/falco/app/restart_handler.cpp index 86e9307b..f17a6fd3 100644 --- a/userspace/falco/app/restart_handler.cpp +++ b/userspace/falco/app/restart_handler.cpp @@ -23,6 +23,11 @@ limitations under the License. #include #include +#if __GLIBC__ == 2 && __GLIBC_MINOR__ < 30 +#include +#define gettid() syscall(SYS_gettid) +#endif + void falco::app::restart_handler::trigger() { m_forced.store(true, std::memory_order_release);