projects
/
oweals
/
musl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a591e03
)
declare basename in string.h when _GNU_SOURCE is defined
author
Rich Felker
<dalias@aerifal.cx>
Tue, 7 Feb 2012 18:10:30 +0000
(13:10 -0500)
committer
Rich Felker
<dalias@aerifal.cx>
Tue, 7 Feb 2012 18:10:30 +0000
(13:10 -0500)
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
patch
|
blob
|
history
diff --git
a/include/string.h
b/include/string.h
index c2dc7e35efb6137f67c5e07196f1719132e84487..10d5b17667f0ba870f81b3f53f3520cb8081c0f9 100644
(file)
--- 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