Skip to content

Commit fe5c6c7

Browse files
author
bors-servo
authored
Auto merge of #183 - servo:build-fix, r=jdm
Cherry-pick the fix for bug 1533969. Otherwise I can't build :) <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/mozjs/183) <!-- Reviewable:end -->
2 parents e21c05b + 80bcfdc commit fe5c6c7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "mozjs_sys"
33
description = "System crate for the Mozilla SpiderMonkey JavaScript engine."
44
repository = "https://github.com/servo/mozjs/"
5-
version = "0.66.0"
5+
version = "0.66.1"
66
authors = ["Mozilla"]
77
links = "mozjs"
88
build = "build.rs"

mozjs/js/src/util/NativeStack.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
# include <sys/syscall.h>
2626
# include <sys/types.h>
2727
# include <unistd.h>
28-
static pid_t gettid() { return syscall(__NR_gettid); }
28+
# define gettid() static_cast<pid_t>(syscall(__NR_gettid))
2929
# endif
3030
#else
3131
# error "Unsupported platform"

0 commit comments

Comments
 (0)