summaryrefslogtreecommitdiff
path: root/utility.c
diff options
context:
space:
mode:
authorMatt Kraai2000-08-26 16:52:28 +0000
committerMatt Kraai2000-08-26 16:52:28 +0000
commit88cc3057fdb5a342bc305963cd6abc180ff6c324 (patch)
treebff98f79fd07ad47437d0c6661acd1969f0499e4 /utility.c
parent06aeb6c417dd9d113949714486a6e6337ef70b97 (diff)
downloadbusybox-88cc3057fdb5a342bc305963cd6abc180ff6c324.zip
busybox-88cc3057fdb5a342bc305963cd6abc180ff6c324.tar.gz
Compile xstrdup and xstrndup iff they are needed.
Diffstat (limited to 'utility.c')
-rw-r--r--utility.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/utility.c b/utility.c
index 2851dd2..aa8bef6 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;