Static library of whatever are seen required in general purpose but not directly supported from Modern C++. Or whatever reusable originated from my side projects.
14// based on https://developer.apple.com/library/archive/documentation/Porting/Conceptual/PortingUnix/compiling/compiling.html#//apple_ref/doc/uid/TP40002850-SW13
15#include <pthread.h>
16#define TID_ pthread_self()
17#elifdef __GNUC__
18#ifndef _GNU_SOURCE
19#define _GNU_SOURCE // or _BSD_SOURCE or _SVID_SOURCE
20#endif
21#include <unistd.h>
22#include <sys/syscall.h>// for SYS_xxx definitions