diff options
author | Ed Maste <emaste@FreeBSD.org> | 2018-09-24 16:32:10 +0000 |
---|---|---|
committer | Ed Maste <emaste@FreeBSD.org> | 2018-09-24 16:32:10 +0000 |
commit | cbc620a473ce23d882ba3e9f91ec0c6c12dcd239 (patch) | |
tree | 7d8d17e35fb312cb2e806d983cb326f645a7372e /strlcpy-internal.h |
Notes
Diffstat (limited to 'strlcpy-internal.h')
-rw-r--r-- | strlcpy-internal.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/strlcpy-internal.h b/strlcpy-internal.h new file mode 100644 index 000000000000..cfc27ec66276 --- /dev/null +++ b/strlcpy-internal.h @@ -0,0 +1,22 @@ +#ifndef STRLCPY_INTERNAL_H_INCLUDED_ +#define STRLCPY_INTERNAL_H_INCLUDED_ + +#ifdef __cplusplus +extern "C" { +#endif + +#include "event2/event-config.h" +#include "evconfig-private.h" + +#ifndef EVENT__HAVE_STRLCPY +#include <string.h> +size_t event_strlcpy_(char *dst, const char *src, size_t siz); +#define strlcpy event_strlcpy_ +#endif + +#ifdef __cplusplus +} +#endif + +#endif + |