projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
06aeb6c
)
Compile xstrdup and xstrndup iff they are needed.
author
Matt Kraai
<kraai@debian.org>
Sat, 26 Aug 2000 16:52:28 +0000
(16:52 -0000)
committer
Matt Kraai
<kraai@debian.org>
Sat, 26 Aug 2000 16:52:28 +0000
(16:52 -0000)
utility.c
patch
|
blob
|
history
diff --git
a/utility.c
b/utility.c
index 2851dd20dbe9575cd2dd2810c74f9f3640b0b9e8..aa8bef6b39507a2fd08572bf5dea780f4202da50 100644
(file)
--- 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;