diff options
author | Dan Fandrich | 2011-02-12 22:26:57 -0800 |
---|---|---|
committer | Denys Vlasenko | 2011-02-13 18:37:12 +0100 |
commit | dc50676cce35cdba3ecba3870c3f752408d6db70 (patch) | |
tree | a8c7861c43f656b1013a0e57672446d63ffdb263 /include | |
parent | 4ed3c52ce9b3ce5604c4fa075fda374f8cd01eea (diff) | |
download | busybox-dc50676cce35cdba3ecba3870c3f752408d6db70.zip busybox-dc50676cce35cdba3ecba3870c3f752408d6db70.tar.gz |
Move stpcpy replacement function into libbb
Signed-off-by: Dan Fandrich <dan@coneharvesters.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/platform.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/platform.h b/include/platform.h index 00ebe56..e390e58 100644 --- a/include/platform.h +++ b/include/platform.h @@ -18,6 +18,7 @@ #define HAVE_PTSNAME_R 1 #define HAVE_SETBIT 1 #define HAVE_SIGHANDLER_T 1 +#define HAVE_STPCPY 1 #define HAVE_STRCASESTR 1 #define HAVE_STRCHRNUL 1 #define HAVE_STRSEP 1 @@ -356,6 +357,8 @@ typedef unsigned smalluint; # define ADJ_TICK MOD_CLKB # endif +# undef HAVE_STPCPY + #else # define bb_setpgrp() setpgrp() @@ -376,6 +379,7 @@ typedef unsigned smalluint; # undef HAVE_MEMRCHR # undef HAVE_MKDTEMP # undef HAVE_SETBIT +# undef HAVE_STPCPY # undef HAVE_STRCASESTR # undef HAVE_STRCHRNUL # undef HAVE_STRSEP @@ -413,6 +417,10 @@ extern char *mkdtemp(char *template) FAST_FUNC; typedef void (*sighandler_t)(int); #endif +#ifndef HAVE_STPCPY +extern char *stpcpy(char *p, const char *to_add) FAST_FUNC; +#endif + #ifndef HAVE_STRCASESTR extern char *strcasestr(const char *s, const char *pattern) FAST_FUNC; #endif |