Get Linux to compile again

This commit is contained in:
Jeremy Soller
2022-07-27 10:10:41 -06:00
parent aa2397ce29
commit dc865148fc
3 changed files with 25 additions and 11 deletions
+3
View File
@@ -127,6 +127,8 @@ fn io_init() {
stdio::stderr = stdio::default_stderr.get();
}
}
#[cfg(target_os = "redox")]
fn setup_sigstack() {
use syscall::{Map, MapFlags};
const SIGSTACK_SIZE: usize = 1024 * 256;
@@ -185,6 +187,7 @@ pub unsafe extern "C" fn relibc_start(sp: &'static Stack) -> ! {
}
// Setup signal stack, otherwise we cannot handle any signals besides SIG_IGN/SIG_DFL behavior.
#[cfg(target_os = "redox")]
setup_sigstack();
init_array();