strlcpy compat function prototype in config.h

(when needed)
This commit is contained in:
Willem Toorop 2014-10-30 15:50:35 +01:00
parent 6d2ff90203
commit 3bc67a83c3
2 changed files with 24 additions and 0 deletions

View File

@ -523,6 +523,18 @@ AH_BOTTOM([
#ifdef HAVE_BSD_STRING_H
#include <bsd/string.h>
#endif
#ifdef __cplusplus
extern "C" {
#endif
#ifndef HAVE_STRLCPY
size_t strlcpy(char *dst, const char *src, size_t siz);
#endif
#ifdef __cplusplus
}
#endif
])
dnl ---------------------------------------------------------------------------

View File

@ -238,3 +238,15 @@
#include <bsd/string.h>
#endif
#ifdef __cplusplus
extern "C" {
#endif
#ifndef HAVE_STRLCPY
size_t strlcpy(char *dst, const char *src, size_t siz);
#endif
#ifdef __cplusplus
}
#endif