fix(userspace/falco): solve gettid compilation issues

Signed-off-by: Jason Dellaluce <jasondellaluce@gmail.com>
This commit is contained in:
Jason Dellaluce 2023-02-22 16:13:10 +00:00 committed by poiana
parent cd155ed6f5
commit 647441c06c

View File

@ -23,6 +23,11 @@ limitations under the License.
#include <sys/inotify.h>
#include <sys/select.h>
#if __GLIBC__ == 2 && __GLIBC_MINOR__ < 30
#include <sys/syscall.h>
#define gettid() syscall(SYS_gettid)
#endif
void falco::app::restart_handler::trigger()
{
m_forced.store(true, std::memory_order_release);