probably fix linux waterbox issue
This commit is contained in:
parent
dc8615ca06
commit
d354faeec1
Binary file not shown.
|
@ -0,0 +1,4 @@
|
||||||
|
#!/bin/sh
|
||||||
|
cargo b --features "no-dirty-detection"
|
||||||
|
cp target/debug/libwaterboxhost.so ../../Assets
|
||||||
|
cp target/debug/libwaterboxhost.so ../../output
|
|
@ -1,3 +1,4 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
cargo b
|
cargo b
|
||||||
cp target/debug/libwaterboxhost.so ../../Assets
|
cp target/debug/libwaterboxhost.so ../../Assets
|
||||||
|
cp target/debug/libwaterboxhost.so ../../output
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
cargo b --release
|
cargo b --release
|
||||||
cp target/release/libwaterboxhost.so ../../Assets
|
cp target/release/libwaterboxhost.so ../../Assets
|
||||||
|
cp target/release/libwaterboxhost.so ../../output
|
||||||
|
|
|
@ -107,7 +107,7 @@ pub fn prepare_thread() {
|
||||||
assert_eq!(syscall(SYS_arch_prctl, 0x1004 /*ARCH_GET_GS*/, &gs), 0);
|
assert_eq!(syscall(SYS_arch_prctl, 0x1004 /*ARCH_GET_GS*/, &gs), 0);
|
||||||
if gs == 0 {
|
if gs == 0 {
|
||||||
TIB.with(|b| {
|
TIB.with(|b| {
|
||||||
gs = b.as_ref()[0] as *const usize as usize;
|
gs = b.as_ref() as *const usize as usize;
|
||||||
assert_eq!(syscall(SYS_arch_prctl, 0x1001 /*ARCH_SET_GS*/, gs), 0);
|
assert_eq!(syscall(SYS_arch_prctl, 0x1001 /*ARCH_SET_GS*/, gs), 0);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue