libc: fix missing bcmp symbol

This commit is contained in:
Mark Poliakov 2024-11-19 01:51:44 +02:00
parent a14206204a
commit d7111e8d99

View File

@ -91,3 +91,8 @@ pub unsafe extern "C" fn memmove(dst: *mut c_void, src: *const c_void, n: usize)
pub unsafe extern "C" fn memcmp(s1: *const c_void, s2: *const c_void, n: usize) -> c_int { pub unsafe extern "C" fn memcmp(s1: *const c_void, s2: *const c_void, n: usize) -> c_int {
compiler_builtins::mem::memcmp(s1.cast(), s2.cast(), n) compiler_builtins::mem::memcmp(s1.cast(), s2.cast(), n)
} }
#[no_mangle]
pub unsafe extern "C" fn bcmp(s1: *const c_void, s2: *const c_void, n: usize) -> c_int {
compiler_builtins::mem::bcmp(s1.cast(), s2.cast(), n)
}