From 88cc3057fdb5a342bc305963cd6abc180ff6c324 Mon Sep 17 00:00:00 2001 From: Matt Kraai Date: Sat, 26 Aug 2000 16:52:28 +0000 Subject: Compile xstrdup and xstrndup iff they are needed. --- utility.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/utility.c b/utility.c index 2851dd20d..aa8bef6b3 100644 --- a/utility.c +++ b/utility.c @@ -1503,7 +1503,7 @@ extern void *xcalloc(size_t nmemb, size_t size) } #endif -#if defined BB_FEATURE_NFSMOUNT || defined BB_LSMOD +#if defined BB_FEATURE_NFSMOUNT || defined BB_SH # ifndef DMALLOC extern char * xstrdup (const char *s) { char *t; @@ -1519,7 +1519,9 @@ extern char * xstrdup (const char *s) { return t; } # endif +#endif +#if defined BB_FEATURE_NFSMOUNT extern char * xstrndup (const char *s, int n) { char *t; -- cgit v1.2.3