From 1ba28b90d6de61460b06289d8484f489df64e47e Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Tue, 7 Feb 2012 13:10:30 -0500 Subject: [PATCH] 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... --- include/string.h | 1 + 1 file changed, 1 insertion(+) 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 -- 2.25.1