summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/string.h2
-rw-r--r--src/string/strsep.c1
2 files changed, 2 insertions, 1 deletions
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 <string.h>
char *strsep(char **str, const char *sep)