summaryrefslogtreecommitdiff
path: root/include/string.h
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2012-09-13 21:01:30 -0400
committerRich Felker <dalias@aerifal.cx>2012-09-13 21:01:30 -0400
commite2f6a3257e256ac26a755fb58290ceb1b839fa20 (patch)
treed95b45654b334c02db78c93bea69f07d9412fb15 /include/string.h
parentb238b37a0f9d12f87dc9b7ce1ece4bcde566a45f (diff)
downloadmusl-e2f6a3257e256ac26a755fb58290ceb1b839fa20.tar.gz
musl-e2f6a3257e256ac26a755fb58290ceb1b839fa20.tar.bz2
musl-e2f6a3257e256ac26a755fb58290ceb1b839fa20.tar.xz
musl-e2f6a3257e256ac26a755fb58290ceb1b839fa20.zip
strsep is BSD|GNU, not GNU-only; it's originally from BSD
Diffstat (limited to 'include/string.h')
-rw-r--r--include/string.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/string.h b/include/string.h
index 5587c880..3a0868b7 100644
--- a/include/string.h
+++ b/include/string.h
@@ -79,6 +79,10 @@ size_t strxfrm_l (char *__restrict, const char *__restrict, size_t, locale_t);
void *memccpy (void *__restrict, const void *__restrict, int, size_t);
#endif
+#if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
+char *strsep(char **, const char *);
+#endif
+
#ifdef _BSD_SOURCE
size_t strlcat (char *, const char *, size_t);
size_t strlcpy (char *, const char *, size_t);
@@ -91,7 +95,6 @@ int strcasecmp_l (const char *, const char *, locale_t);
int strncasecmp_l (const char *, const char *, size_t, locale_t);
char *strchrnul(const char *, int);
char *strcasestr(const char *, const char *);
-char *strsep(char **, const char *);
void *memrchr(const void *, int, size_t);
void *mempcpy(void *, const void *, size_t);
#ifndef __cplusplus