fix for gettid() only after glibc 2.30

This commit is contained in:
2022-02-07 15:05:57 +01:00
parent 83e0599a37
commit c9fbd7afdf
6 changed files with 36 additions and 0 deletions

View File

@ -14,6 +14,12 @@
#include <sys/wait.h> //wait
#include <unistd.h>
// gettid added in glibc 2.30
#if __GLIBC__ == 2 && __GLIBC_MINOR__ < 30
#include <sys/syscall.h>
#define gettid() syscall(SYS_gettid)
#endif
/** Define Colors to print data call back in different colors for different
* recievers */
#define PRINT_IN_COLOR(c, f, ...) \