Skip to content

Commit

Permalink
add memmem GNU extension for haiku
Browse files Browse the repository at this point in the history
  • Loading branch information
devnexen committed Mar 24, 2023
1 parent 74e81a5 commit fb2a763
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/unix/haiku/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2035,6 +2035,16 @@ extern "C" {
pub fn setprogname(progname: *const ::c_char);
}

#[link(name = "unix")]
extern "C" {
pub fn memmem(
source: *const ::c_void,
sourceLength: ::size_t,
search: *const ::c_void,
searchLength: ::size_t,
) -> *mut ::c_void;
}

cfg_if! {
if #[cfg(target_pointer_width = "64")] {
mod b64;
Expand Down

0 comments on commit fb2a763

Please sign in to comment.