diff options
Diffstat (limited to 'cpukit/shttpd/string.c')
-rw-r--r-- | cpukit/shttpd/string.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cpukit/shttpd/string.c b/cpukit/shttpd/string.c index f1b3645bac..8e9023cf31 100644 --- a/cpukit/shttpd/string.c +++ b/cpukit/shttpd/string.c @@ -32,6 +32,7 @@ my_strncasecmp(const char *str1, const char *str2, size_t len) return (ret); } +#ifndef HAVE_STRNDUP char * my_strndup(const char *ptr, size_t len) { @@ -43,12 +44,15 @@ my_strndup(const char *ptr, size_t len) return (p); } +#endif +#ifndef HAVE_STRDUP char * my_strdup(const char *str) { return (my_strndup(str, strlen(str))); } +#endif /* * Sane snprintf(). Acts like snprintf(), but never return -1 or the |