Fix compilation on OS X Yosemite

Due to our unconditional declaration of the strlcat and strlcpy
functions, compilation failed on OS X Yosemite.

Bug #1192
pull/1293/head
Victor Julien 10 years ago
parent a1eab4a2e2
commit 8e946b92b7

@ -164,6 +164,7 @@
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

@ -323,8 +323,12 @@ typedef enum PacketProfileDetectId_ {
#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;

Loading…
Cancel
Save