Skip to content

Commit a68fe6a

Browse files
committed
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.
1 parent d9ee6f7 commit a68fe6a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

config.h.in

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -394,6 +394,13 @@
394394
extern "C" {
395395
# endif
396396

397+
/* We experienced that some combination of Haiku + nCurses ends up with header
398+
* files that defines memmem (as non-static), but no memmem implementation in
399+
* the provided libc (libgnu might provide it) so redirect memmem to ocp_memmem
400+
*/
401+
#undef memmem
402+
#define memmem ocp_memmem
403+
397404
static inline void *memmem(const void *_haystack, size_t haystacklen,
398405
const void *needle, size_t needlelen)
399406
{

0 commit comments

Comments
 (0)