diff options
author | Omar Polo <op@omarpolo.com> | 2022-10-31 22:46:59 +0000 |
---|---|---|
committer | Omar Polo <op@omarpolo.com> | 2022-10-31 22:46:59 +0000 |
commit | 2d7a479e73839eafe90cf619f6e70d1a6206c8cc (patch) | |
tree | 2b41caf296cc34103961cb247256458f2ee9f30f /configure | |
parent | a9360663194daba62f2eba74e2adca346350f6bd (diff) |
add memmem compat
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -250,6 +250,7 @@ runtest landlock LANDLOCK || true runtest libevent LIBEVENT || true runtest libevent2 LIBEVENT2 || true runtest libtls LIBTLS || true +runtest memmem MEMMEM "" -D_GNU_SOURCE || true runtest openssl OPENSSL || true runtest pr_set_name PR_SET_NAME || true runtest program_invocation_short_name PROGRAM_INVOCATION_SHORT_NAME "" -D_GNU_SOURCE || true @@ -389,6 +390,10 @@ fi if [ ${HAVE_IMSG} -eq 0 ]; then COBJS="${COBJS} compat/imsg.o compat/imsg-buffer.o" fi +if [ ${HAVE_MEMMEM} -eq 0 ]; then + echo "extern void *memmem(const void *, size_t, const void *, size_t);" + COBJS="${COBJS} compat/memmem.o" +fi if [ ${HAVE_REALLOCARRAY} -eq 0 ]; then echo "extern void *reallocarray(void*, size_t, size_t);" COBJS="${COBJS} compat/reallocarray.o" |