Skip to content

Commit

Permalink
Auto merge of #3165 - devnexen:haiku_memmem, r=JohnTitor
Browse files Browse the repository at this point in the history
add memmem GNU extension for haiku
  • Loading branch information
bors committed Mar 28, 2023
2 parents d19da49 + fb2a763 commit a7c13b9
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 a7c13b9

Please sign in to comment.