diff --git a/configure.ac b/configure.ac index 3ca5f550..7ec25df3 100755 --- a/configure.ac +++ b/configure.ac @@ -523,6 +523,18 @@ AH_BOTTOM([ #ifdef HAVE_BSD_STRING_H #include #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 --------------------------------------------------------------------------- diff --git a/src/config.h.in b/src/config.h.in index bc517817..e3a7fe64 100644 --- a/src/config.h.in +++ b/src/config.h.in @@ -238,3 +238,15 @@ #include #endif +#ifdef __cplusplus +extern "C" { +#endif + +#ifndef HAVE_STRLCPY +size_t strlcpy(char *dst, const char *src, size_t siz); +#endif + +#ifdef __cplusplus +} +#endif +