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);