diff options
author | Matt A. Tobin <email@mattatobin.com> | 2019-10-16 12:37:07 -0400 |
---|---|---|
committer | Matt A. Tobin <email@mattatobin.com> | 2019-10-16 12:37:07 -0400 |
commit | fd76ba979a627e0a4b823b98727944e98351ce4a (patch) | |
tree | a01ca91bfc9d886d34f5e223dc7bb56b28ba7743 /js | |
parent | df7fdc5542377ee2b84ba824e94e9fb8cd195b9d (diff) | |
download | uxp-fd76ba979a627e0a4b823b98727944e98351ce4a.tar.gz |
Fix build errors with newer glibc versions
Diffstat (limited to 'js')
-rw-r--r-- | js/src/jsnativestack.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/js/src/jsnativestack.cpp b/js/src/jsnativestack.cpp index 98f8fc7416..94a296bd0e 100644 --- a/js/src/jsnativestack.cpp +++ b/js/src/jsnativestack.cpp @@ -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 |