summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2012-02-07 13:10:30 -0500
committerRich Felker <dalias@aerifal.cx>2012-02-07 13:10:30 -0500
commit1ba28b90d6de61460b06289d8484f489df64e47e (patch)
treebb703684393c35700c71ddde66ee23f5c3b833b6
parenta591e0383a0a31ac94541846796b93fedc63a0c4 (diff)
downloadmusl-1ba28b90d6de61460b06289d8484f489df64e47e.tar.gz
declare basename in string.h when _GNU_SOURCE is defined
note that it still will have the standards-conformant behavior, not the GNU behavior. but at least this prevents broken code from ending up with truncated pointers due to implicit declarations...
-rw-r--r--include/string.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/string.h b/include/string.h
index c2dc7e35..10d5b176 100644
--- a/include/string.h
+++ b/include/string.h
@@ -85,6 +85,7 @@ 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);
+char *basename(char *);
#endif
#ifdef __cplusplus