summaryrefslogtreecommitdiffstats
path: root/js
diff options
context:
space:
mode:
authorMatt A. Tobin <email@mattatobin.com>2019-10-16 12:37:07 -0400
committerwolfbeast <mcwerewolf@wolfbeast.com>2019-10-21 10:34:15 +0200
commit4f038bf39a4806ec7339bf062a184e4e1f20758e (patch)
tree712deb09c660e2719ae7e6630e14fbb1886bde3f /js
parent0d6f1e11ba26646c21eff61dcee78d17914bfd81 (diff)
downloadUXP-4f038bf39a4806ec7339bf062a184e4e1f20758e.tar
UXP-4f038bf39a4806ec7339bf062a184e4e1f20758e.tar.gz
UXP-4f038bf39a4806ec7339bf062a184e4e1f20758e.tar.lz
UXP-4f038bf39a4806ec7339bf062a184e4e1f20758e.tar.xz
UXP-4f038bf39a4806ec7339bf062a184e4e1f20758e.zip
Fix build errors with newer glibc versions
Diffstat (limited to 'js')
-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