File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -960,7 +960,7 @@ extern "C" {
960
960
old : * mut sigaction ,
961
961
_external_handler : :: Option < unsafe extern "C" fn ( :: c_int ) > ,
962
962
) -> :: c_int ;
963
- fn __wasm_signal ( signum : :: c_int ) ;
963
+ fn __wasm_signal_impl ( signum : :: c_int ) ;
964
964
}
965
965
966
966
pub unsafe fn sigaction ( sig : :: c_int , sa : * const sigaction , old : * mut sigaction ) -> :: c_int {
@@ -975,11 +975,11 @@ extern "C" fn default_handler(sig: ::c_int) {
975
975
}
976
976
}
977
977
978
- mod wasm_signal {
979
- # [ no_mangle ]
980
- extern "C" fn __wasm_signal ( signum : :: c_int ) {
981
- unsafe { super :: __wasm_signal ( signum) } ;
982
- }
978
+ // Export the __wasm_signal function, used for receiving
979
+ // signals from a WASIX runtime by wasix-libc
980
+ # [ no_mangle ]
981
+ extern "C" fn __wasm_signal ( signum : :: c_int ) {
982
+ unsafe { __wasm_signal_impl ( signum ) } ;
983
983
}
984
984
985
985
/// mocked functions that dont do anything in WASI land
You can’t perform that action at this time.
0 commit comments