]> git.baikalelectronics.ru Git - kernel.git/commit
tools lib: Guard the strlcpy() header with __GLIBC__
authorArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 8 Jul 2016 18:38:51 +0000 (15:38 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 12 Jul 2016 18:20:29 +0000 (15:20 -0300)
commita999481cda8910396e882aebcc35a89dc46d8f38
treeb6650dc543a14ba05f8ec65a8e0c0304fa63254f
parentd0c47f2d1ed2d9c75e3dca7be87b9cd7825b7317
tools lib: Guard the strlcpy() header with __GLIBC__

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 <adrian.hunter@intel.com>
Cc: Alexey Brodkin <Alexey.Brodkin@synopsys.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Vineet Gupta <vgupta@synopsys.com>
Cc: Wang Nan <wangnan0@huawei.com>
Link: http://lkml.kernel.org/n/tip-52ih0m63a2n63tanpy6yj682@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/include/linux/string.h