1
0
mirror of https://github.com/bgp/bgpq4.git synced 2024-05-11 05:55:05 +00:00
Files
bgp-bgpq4/include/string.h

25 lines
489 B
C
Raw Permalink Normal View History

2021-08-17 12:33:00 +00:00
/*
2021-08-17 14:19:10 +00:00
* Public domain
* string.h compatibility shim
2021-08-17 12:33:00 +00:00
*/
2021-08-17 14:19:10 +00:00
#include_next <string.h>
2021-08-17 12:33:00 +00:00
2021-08-17 14:19:10 +00:00
#ifndef LIBCOMPAT_STRING_H
#define LIBCOMPAT_STRING_H
2021-08-17 12:33:00 +00:00
2021-08-17 14:19:10 +00:00
#include <sys/types.h>
2021-08-17 12:33:00 +00:00
2021-08-17 14:19:10 +00:00
#if defined(__sun) || defined(__hpux)
/* Some functions historically defined in string.h were placed in strings.h by
* SUS. Use the same hack as OS X and FreeBSD use to work around on Solaris and HPUX.
*/
#include <strings.h>
2021-08-17 12:33:00 +00:00
#endif
2021-08-17 14:19:10 +00:00
#ifndef HAVE_STRLCPY
size_t strlcpy(char *dst, const char *src, size_t siz);
2021-08-17 12:33:00 +00:00
#endif
#endif