From 6c387d39a455c5b6655387740a00e693c403809d Mon Sep 17 00:00:00 2001 From: Stefan `Sec` Zehl Date: Sat, 21 May 2011 02:07:52 +0200 Subject: [PATCH] Define strtok_r before using it. C99 requires it. --- core/libc/string.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/libc/string.c b/core/libc/string.c index 544f2ac..375ded9 100755 --- a/core/libc/string.c +++ b/core/libc/string.c @@ -274,6 +274,8 @@ int strcmp(const char *s1, const char *s2) return (*(unsigned char *)s1 - *(unsigned char *)--s2); } +char *strtok_r(char *s, const char *delim, char **last); + char *strtok(char *s, const char *delim) { static char *last;