summaryrefslogtreecommitdiff
path: root/openbsd-compat/memmem.c
diff options
context:
space:
mode:
Diffstat (limited to 'openbsd-compat/memmem.c')
-rw-r--r--openbsd-compat/memmem.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/openbsd-compat/memmem.c b/openbsd-compat/memmem.c
index 823443b08..3e5e6b5e6 100644
--- a/openbsd-compat/memmem.c
+++ b/openbsd-compat/memmem.c
@@ -27,6 +27,10 @@
27 * SUCH DAMAGE. 27 * SUCH DAMAGE.
28 */ 28 */
29 29
30#include "includes.h"
31
32#ifndef HAVE_MEMMEM
33
30#include <string.h> 34#include <string.h>
31 35
32/* 36/*
@@ -62,3 +66,4 @@ memmem(const void *l, size_t l_len, const void *s, size_t s_len)
62 return NULL; 66 return NULL;
63} 67}
64DEF_WEAK(memmem); 68DEF_WEAK(memmem);
69#endif /* HAVE_MEMMEM */