diff options
| author | David Lamparter <equinox@opensourcerouting.org> | 2016-11-15 17:15:49 +0900 |
|---|---|---|
| committer | David Lamparter <equinox@opensourcerouting.org> | 2016-11-15 17:35:36 +0900 |
| commit | c5d9d3bb361a7ccf58c3a75ce20d48dcde51210a (patch) | |
| tree | 5838aaa1ea55338690ac2d78aab924d91e5d4c30 /lib/zebra.h | |
| parent | 8ce70b1f5efd049ea23cdbc0929274eaa64cf0f5 (diff) | |
lib: replace strlcpy & strlcat with glibc versions
It seems these two were at some point copied in from rsync; replace with
more recent versions that will hopefully become available in glibc as
well.
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'lib/zebra.h')
| -rw-r--r-- | lib/zebra.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/zebra.h b/lib/zebra.h index 9a73d2d307..a67713c30d 100644 --- a/lib/zebra.h +++ b/lib/zebra.h @@ -221,8 +221,13 @@ typedef unsigned char u_int8_t; #endif /* !__GNUC__ || VTYSH_EXTRACT_PL */ #include "zassert.h" -#include "str.h" +#ifndef HAVE_STRLCAT +size_t strlcat (char *__restrict dest, const char *__restrict src, size_t size); +#endif +#ifndef HAVE_STRLCPY +size_t strlcpy (char *__restrict dest, const char *__restrict src, size_t size); +#endif #ifdef HAVE_BROKEN_CMSG_FIRSTHDR /* This bug is present in Solaris 8 and pre-patch Solaris 9 <sys/socket.h>; |
