On 5/24/20 1:55 AM, Joseph C. Sible wrote: > The gettid(2) function requires the _GNU_SOURCE feature test macro, > but its man page doesn't mention this. Also, it comes from unistd.h, > but its man page only mentions sys/types.h. Thanks, Joseph. I applied the patch below. Cheers, Michael --- a/man2/gettid.2 +++ b/man2/gettid.2 @@ -28,6 +28,8 @@ gettid \- get thread identification .SH SYNOPSIS .nf +.B #define _GNU_SOURCE +.B #include <unistd.h> .B #include <sys/types.h> .PP .B pid_t gettid(void); -- Michael Kerrisk Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/ Linux/UNIX System Programming Training: http://man7.org/training/