From: Rich Felker Date: Tue, 7 Feb 2012 18:10:30 +0000 (-0500) Subject: declare basename in string.h when _GNU_SOURCE is defined X-Git-Tag: v0.8.5~23 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=1ba28b90d6de61460b06289d8484f489df64e47e;p=oweals%2Fmusl.git 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... --- 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