Support building for Redox

This commit is contained in:
Jeremy Soller
2018-03-04 08:10:42 -07:00
parent 352f485649
commit 866d952924
9 changed files with 64 additions and 19 deletions
+1 -10
View File
@@ -104,16 +104,7 @@ pub extern "C" fn strerror(errnum: c_int) -> *mut c_char {
#[no_mangle]
pub unsafe extern "C" fn strlen(s: *const c_char) -> size_t {
let mut size = 0;
loop {
if *s.offset(size) == 0 {
break;
}
size += 1;
}
size as size_t
platform::c_str(s).len() as size_t
}
#[no_mangle]