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 | e31d79e8da99456247df84c2f99ba9083d46efe1 (patch) | |
tree | a01ca91bfc9d886d34f5e223dc7bb56b28ba7743 /js/src | |
parent | 3ae8f139af5e46157d0d9d5790d401c95e076988 (diff) | |
download | uxp-e31d79e8da99456247df84c2f99ba9083d46efe1.tar.gz |
Fix build errors with newer glibc versions
Diffstat (limited to 'js/src')
-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 |