Skip to content

Commit

Permalink
haiku build fix
Browse files Browse the repository at this point in the history
  • Loading branch information
devnexen committed Apr 30, 2022
1 parent d7abb02 commit dd4e81a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/unix/mod.rs
Expand Up @@ -516,6 +516,7 @@ extern "C" {
pub fn strcpy(dst: *mut c_char, src: *const c_char) -> *mut c_char;
pub fn strncpy(dst: *mut c_char, src: *const c_char, n: size_t) -> *mut c_char;
pub fn stpcpy(dst: *mut c_char, src: *const c_char) -> *mut c_char;
#[cfg(not(target_os = "haiku"))]
pub fn stpncpy(dst: *mut c_char, src: *const c_char, n: size_t) -> *mut c_char;
pub fn strcat(s: *mut c_char, ct: *const c_char) -> *mut c_char;
pub fn strncat(s: *mut c_char, ct: *const c_char, n: size_t) -> *mut c_char;
Expand Down Expand Up @@ -1396,7 +1397,8 @@ extern "C" {
}
cfg_if! {
if #[cfg(not(any(target_os = "emscripten",
target_os = "android")))] {
target_os = "android",
target_os = "haiku")))] {
extern "C" {
pub fn adjtime(delta: *const timeval, olddelta: *mut timeval) -> ::c_int;
}
Expand Down

0 comments on commit dd4e81a

Please sign in to comment.