Hello mtk SYNOPSIS top #define _GNU_SOURCE #include <unistd.h> #include <sys/types.h> pid_t gettid(void); I can compile on Ubuntu without #define _GNU_SOURCE and call gettid() Maybe that line can be removed? https://www.man7.org/linux/man-pages/man2/gettid.2.html Cheers Jonny