diff options
author | Darren Tucker <dtucker@dtucker.net> | 2019-07-16 09:20:23 +1000 |
---|---|---|
committer | Darren Tucker <dtucker@dtucker.net> | 2019-07-16 09:21:20 +1000 |
commit | 45478898f9590b5cc8bc7104e573b84be67443b0 (patch) | |
tree | a336573c93d4252ec4d03c1d4fba0356b5e72464 /openbsd-compat/memmem.c | |
parent | c7bd4617293a903bd3fac3394a7e72d439af49a5 (diff) |
Hook memmem compat code into build.
This fixes builds on platforms that don't have it (at least old DragonFly,
probably others).
Diffstat (limited to 'openbsd-compat/memmem.c')
-rw-r--r-- | openbsd-compat/memmem.c | 5 |
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 | } |
64 | DEF_WEAK(memmem); | 68 | DEF_WEAK(memmem); |
69 | #endif /* HAVE_MEMMEM */ | ||