Skip to content

Commit

Permalink
Check for memmem declaration; sometimes it is not declared by default.
Browse files Browse the repository at this point in the history
  • Loading branch information
kohler committed Aug 16, 2017
1 parent e16fda5 commit 3f1ddda
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ dnl strerror()?
dnl

AC_REPLACE_FUNCS([strerror memmem])
AC_CHECK_DECLS([memmem])


dnl
Expand Down Expand Up @@ -88,7 +89,7 @@ char* strerror(int errno);
#endif
/* Prototype memmem if we don't have it. */
#if !HAVE_MEMMEM
#if !HAVE_MEMMEM || !HAVE_DECL_MEMMEM
void* memmem(const void* haystack, size_t haystack_len,
const void* needle, size_t needle_len);
#endif
Expand Down

0 comments on commit 3f1ddda

Please sign in to comment.