From: Rich Felker Date: Wed, 6 Apr 2011 18:28:29 +0000 (-0400) Subject: fix prototype for strsep X-Git-Tag: v0.7.7~1 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=1fee6186fed608ba61257e04355b5b24bd859a05;p=oweals%2Fmusl.git fix prototype for strsep --- diff --git a/include/string.h b/include/string.h index bd195e3f..c755c601 100644 --- a/include/string.h +++ b/include/string.h @@ -73,7 +73,7 @@ int strcasecmp (const char *, const char *); int strncasecmp (const char *, const char *, size_t); char *strchrnul(const char *, int); char *strcasestr(const char *, const char *); -char *strsep(char **, char *); +char *strsep(char **, const char *); #endif #ifdef __cplusplus diff --git a/src/string/strsep.c b/src/string/strsep.c index 1bfe1db1..cb37c32e 100644 --- a/src/string/strsep.c +++ b/src/string/strsep.c @@ -1,3 +1,4 @@ +#define _GNU_SOURCE #include char *strsep(char **str, const char *sep)