Skip to content

Commit

Permalink
We experienced that some combination of Haiku + nCurses ends up with …
Browse files Browse the repository at this point in the history
…header files that defines memmem (as non-static), but no memmem implementation in the provided libc (libgnu might provide it) so redirect memmem to ocp_memmem.
  • Loading branch information
mywave82 committed Jul 30, 2023
1 parent d9ee6f7 commit a68fe6a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions config.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -394,6 +394,13 @@
extern "C" {
# endif

/* We experienced that some combination of Haiku + nCurses ends up with header
* files that defines memmem (as non-static), but no memmem implementation in
* the provided libc (libgnu might provide it) so redirect memmem to ocp_memmem
*/
#undef memmem
#define memmem ocp_memmem

static inline void *memmem(const void *_haystack, size_t haystacklen,
const void *needle, size_t needlelen)
{
Expand Down

0 comments on commit a68fe6a

Please sign in to comment.