diff options
Diffstat (limited to 'util/strlcat.c')
-rw-r--r-- | util/strlcat.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/util/strlcat.c b/util/strlcat.c index 5f260abb..46edd434 100644 --- a/util/strlcat.c +++ b/util/strlcat.c @@ -4,6 +4,8 @@ * Returns strlen(src); if retval >= siz, truncation occurred. */ +#ifdef NEED_STRLCAT + #include <string.h> int strlcat(char *dst, const char *src, int siz) @@ -32,3 +34,6 @@ int strlcat(char *dst, const char *src, int siz) return dlen + (s - src); /* count does not include NUL */ } + +#endif + |