Compile xstrdup and xstrndup iff they are needed.
This commit is contained in:
parent
06aeb6c417
commit
88cc3057fd
@ -1503,7 +1503,7 @@ extern void *xcalloc(size_t nmemb, size_t size)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined BB_FEATURE_NFSMOUNT || defined BB_LSMOD
|
#if defined BB_FEATURE_NFSMOUNT || defined BB_SH
|
||||||
# ifndef DMALLOC
|
# ifndef DMALLOC
|
||||||
extern char * xstrdup (const char *s) {
|
extern char * xstrdup (const char *s) {
|
||||||
char *t;
|
char *t;
|
||||||
@ -1519,7 +1519,9 @@ extern char * xstrdup (const char *s) {
|
|||||||
return t;
|
return t;
|
||||||
}
|
}
|
||||||
# endif
|
# endif
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined BB_FEATURE_NFSMOUNT
|
||||||
extern char * xstrndup (const char *s, int n) {
|
extern char * xstrndup (const char *s, int n) {
|
||||||
char *t;
|
char *t;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user