summaryrefslogtreecommitdiffstats
path: root/js/src/jsnativestack.cpp
diff options
context:
space:
mode:
authorMatt A. Tobin <email@mattatobin.com>2019-10-16 12:37:07 -0400
committerMatt A. Tobin <email@mattatobin.com>2019-10-16 12:37:07 -0400
commite31d79e8da99456247df84c2f99ba9083d46efe1 (patch)
treea01ca91bfc9d886d34f5e223dc7bb56b28ba7743 /js/src/jsnativestack.cpp
parent3ae8f139af5e46157d0d9d5790d401c95e076988 (diff)
downloadUXP-e31d79e8da99456247df84c2f99ba9083d46efe1.tar
UXP-e31d79e8da99456247df84c2f99ba9083d46efe1.tar.gz
UXP-e31d79e8da99456247df84c2f99ba9083d46efe1.tar.lz
UXP-e31d79e8da99456247df84c2f99ba9083d46efe1.tar.xz
UXP-e31d79e8da99456247df84c2f99ba9083d46efe1.zip
Fix build errors with newer glibc versions
Diffstat (limited to 'js/src/jsnativestack.cpp')
-rw-r--r--js/src/jsnativestack.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/js/src/jsnativestack.cpp b/js/src/jsnativestack.cpp
index 98f8fc741..94a296bd0 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