diff options
author | Rich Felker <dalias@aerifal.cx> | 2012-02-07 13:10:30 -0500 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2012-02-07 13:10:30 -0500 |
commit | 1ba28b90d6de61460b06289d8484f489df64e47e (patch) | |
tree | bb703684393c35700c71ddde66ee23f5c3b833b6 /include/string.h | |
parent | a591e0383a0a31ac94541846796b93fedc63a0c4 (diff) | |
download | musl-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...
Diffstat (limited to 'include/string.h')
-rw-r--r-- | include/string.h | 1 |
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 |