Due to our unconditional declaration of the strlcat and strlcpy
functions, compilation failed on OS X Yosemite.
Bug #1192
AC_FUNC_MALLOC
AC_FUNC_REALLOC
AC_CHECK_FUNCS([gettimeofday memset strcasecmp strchr strdup strerror strncasecmp strtol strtoul memchr memrchr])
+ AC_CHECK_FUNCS([strlcpy strlcat])
# Add large file support
AC_SYS_LARGEFILE
#include "util-path.h"
#include "util-conf.h"
+#ifndef HAVE_STRLCAT
size_t strlcat(char *, const char *src, size_t siz);
+#endif
+#ifndef HAVE_STRLCPY
size_t strlcpy(char *dst, const char *src, size_t siz);
+#endif
extern int coverage_unittests;
extern int g_ut_modules;