Fix build errors with newer glibc versions

This commit is contained in:
Matt A. Tobin 2019-10-16 12:37:07 -04:00 committed by Roy Tam
commit 12097d40a2
2 changed files with 4 additions and 14 deletions

View file

@ -26,11 +26,7 @@
# include <sys/syscall.h>
# include <sys/types.h>
# include <unistd.h>
static pid_t
gettid()
{
return syscall(__NR_gettid);
}
# define gettid() static_cast<pid_t>(syscall(SYS_gettid))
# endif
#else