mirror of https://github.com/getdnsapi/getdns.git
strlcpy compat function prototype in config.h
(when needed)
This commit is contained in:
parent
6d2ff90203
commit
3bc67a83c3
12
configure.ac
12
configure.ac
|
@ -523,6 +523,18 @@ AH_BOTTOM([
|
||||||
#ifdef HAVE_BSD_STRING_H
|
#ifdef HAVE_BSD_STRING_H
|
||||||
#include <bsd/string.h>
|
#include <bsd/string.h>
|
||||||
#endif
|
#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 ---------------------------------------------------------------------------
|
dnl ---------------------------------------------------------------------------
|
||||||
|
|
|
@ -238,3 +238,15 @@
|
||||||
#include <bsd/string.h>
|
#include <bsd/string.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef HAVE_STRLCPY
|
||||||
|
size_t strlcpy(char *dst, const char *src, size_t siz);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue