projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b31e3e3
)
tools lib: Guard the strlcpy() header with __GLIBC__
author
Arnaldo Carvalho de Melo
<
[email protected]
>
Fri, 8 Jul 2016 18:38:51 +0000
(15:38 -0300)
committer
Arnaldo Carvalho de Melo
<
[email protected]
>
Tue, 12 Jul 2016 18:20:29 +0000
(15:20 -0300)
Better to whitelist it for libraries that require it (glibc) than
blacklist it with the ones that don't (uclibc, musl libc, etc).
Cc: Adrian Hunter <
[email protected]
>
Cc: Alexey Brodkin <
[email protected]
>
Cc: David Ahern <
[email protected]
>
Cc: Jiri Olsa <
[email protected]
>
Cc: Namhyung Kim <
[email protected]
>
Cc: Vineet Gupta <
[email protected]
>
Cc: Wang Nan <
[email protected]
>
Link:
http://lkml.kernel.org/n/
[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <
[email protected]
>
tools/include/linux/string.h
patch
|
blob
|
history
diff --git
a/tools/include/linux/string.h
b/tools/include/linux/string.h
index b466d0228b5793c624fe190cfec2484a7b615075..b968794773116527208be6eb4b7dfccff00edd2f 100644
(file)
--- a/
tools/include/linux/string.h
+++ b/
tools/include/linux/string.h
@@
-8,7
+8,7
@@
void *memdup(const void *src, size_t len);
int strtobool(const char *s, bool *res);
-#if
ndef __UC
LIBC__
+#if
def __G
LIBC__
extern size_t strlcpy(char *dest, const char *src, size_t size);
#endif