aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkraai <kraai@69ca8d6d-28ef-0310-b511-8ec308f3f277>2000-08-26 16:52:28 +0000
committerkraai <kraai@69ca8d6d-28ef-0310-b511-8ec308f3f277>2000-08-26 16:52:28 +0000
commitd9a3078f9b7a626ca5a379e5ea25a38cefdf39b2 (patch)
treebff98f79fd07ad47437d0c6661acd1969f0499e4
parentb2f46576b8f693505638502e88a065c6e84b927d (diff)
downloadbusybox-w32-d9a3078f9b7a626ca5a379e5ea25a38cefdf39b2.tar.gz
busybox-w32-d9a3078f9b7a626ca5a379e5ea25a38cefdf39b2.tar.bz2
busybox-w32-d9a3078f9b7a626ca5a379e5ea25a38cefdf39b2.zip
Compile xstrdup and xstrndup iff they are needed.
git-svn-id: svn://busybox.net/trunk/busybox@984 69ca8d6d-28ef-0310-b511-8ec308f3f277
-rw-r--r--utility.c4
1 files changed, 3 insertions, 1 deletions
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)
1503} 1503}
1504#endif 1504#endif
1505 1505
1506#if defined BB_FEATURE_NFSMOUNT || defined BB_LSMOD 1506#if defined BB_FEATURE_NFSMOUNT || defined BB_SH
1507# ifndef DMALLOC 1507# ifndef DMALLOC
1508extern char * xstrdup (const char *s) { 1508extern char * xstrdup (const char *s) {
1509 char *t; 1509 char *t;
@@ -1519,7 +1519,9 @@ extern char * xstrdup (const char *s) {
1519 return t; 1519 return t;
1520} 1520}
1521# endif 1521# endif
1522#endif
1522 1523
1524#if defined BB_FEATURE_NFSMOUNT
1523extern char * xstrndup (const char *s, int n) { 1525extern char * xstrndup (const char *s, int n) {
1524 char *t; 1526 char *t;
1525 1527