Skip to content

Commit a7c13b9

Browse files
committed
Auto merge of #3165 - devnexen:haiku_memmem, r=JohnTitor
add memmem GNU extension for haiku
2 parents d19da49 + fb2a763 commit a7c13b9

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/unix/haiku/mod.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2035,6 +2035,16 @@ extern "C" {
20352035
pub fn setprogname(progname: *const ::c_char);
20362036
}
20372037

2038+
#[link(name = "unix")]
2039+
extern "C" {
2040+
pub fn memmem(
2041+
source: *const ::c_void,
2042+
sourceLength: ::size_t,
2043+
search: *const ::c_void,
2044+
searchLength: ::size_t,
2045+
) -> *mut ::c_void;
2046+
}
2047+
20382048
cfg_if! {
20392049
if #[cfg(target_pointer_width = "64")] {
20402050
mod b64;

0 commit comments

Comments
 (0)