summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDan Fandrich2010-06-18 22:36:45 -0700
committerDenys Vlasenko2010-06-19 20:03:18 +0200
commit0635ddd8f7bbd8ed40ef4e5e01ff116ee959fa34 (patch)
treee1e9d33dc63415885cb0273a663af5e1fb6db578 /include
parentfdd7b566ecdc174907f38d9389b28ba842d2b4bf (diff)
downloadbusybox-0635ddd8f7bbd8ed40ef4e5e01ff116ee959fa34.zip
busybox-0635ddd8f7bbd8ed40ef4e5e01ff116ee959fa34.tar.gz
Added code for nonstandard function strsep()
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.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/platform.h b/include/platform.h
index 4bd7a3d..0dadf42 100644
--- a/include/platform.h
+++ b/include/platform.h
@@ -16,6 +16,7 @@
#define HAVE_SETBIT 1
#define HAVE_STRCASESTR 1
#define HAVE_STRCHRNUL 1
+#define HAVE_STRSEP 1
#define HAVE_STRSIGNAL 1
#define HAVE_VASPRINTF 1
@@ -353,6 +354,7 @@ typedef unsigned smalluint;
# undef HAVE_SETBIT
# undef HAVE_STRCASESTR
# undef HAVE_STRCHRNUL
+# undef HAVE_STRSEP
# undef HAVE_STRSIGNAL
# undef HAVE_VASPRINTF
#endif
@@ -391,6 +393,10 @@ extern char *strcasestr(const char *s, const char *pattern) FAST_FUNC;
extern char *strchrnul(const char *s, int c) FAST_FUNC;
#endif
+#ifndef HAVE_STRSEP
+extern char *strsep(char **stringp, const char *delim) FAST_FUNC;
+#endif
+
#ifndef HAVE_STRSIGNAL
/* Not exactly the same: instead of "Stopped" it shows "STOP" etc */
# define strsignal(sig) get_signame(sig)