#1086084 manpages-dev: gettid(2) gives non-working #include instructions

#1086084#5
Date:
2024-10-26 14:51:09 UTC
From:
To:
gettid(2) says:

SYNOPSIS
       #define _GNU_SOURCE
       #include <unistd.h>

       pid_t gettid(void);

but that does not define gettid.

One has to use:

#define __USE_GNU
#include <unistd.h>