scripts: includes: restrict strlcpy prototype to glibc
Defining strlcpy here clashes on macOS, which has some compiler magic
around their strlcpy declaration. Fix this by inverting the check
to declare the prototype only if we are on __GLIBC__. As uClibc may
define __GLIBC__ as well, check for absence of its __UCLIBC__.

This is in-line with what Linux has been doing since 0215d59b15
("tools lib: Reinstate strlcpy() header guard with __UCLIBC__").

Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 5596a39 commit 766ce4dcbe1fa710e9d292f30df806a5c73c2d7c
@Ahmad Fatoum Ahmad Fatoum authored on 27 May 2019
Sascha Hauer committed on 28 May 2019
Showing 1 changed file
View
scripts/include/linux/string.h