diff options
| author | 2016-09-13 03:12:20 +0200 | |
|---|---|---|
| committer | 2016-09-13 03:12:20 +0200 | |
| commit | f75ee9a8816824683e22aee2790f43a9fc43c613 (patch) | |
| tree | 8eb48525bcd0291668d56d0bc4e8a0467467b9b3 /tools/include/linux | |
| parent | ACPI / APD: Add device HID for Vulcan SPI controller (diff) | |
| parent | serial: 8250_dw: Add quirk for APM X-Gene SoC (diff) | |
Merge branch 'device-properties' into acpi-soc
Diffstat (limited to 'tools/include/linux')
| -rw-r--r-- | tools/include/linux/string.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/include/linux/string.h b/tools/include/linux/string.h index b96879477311..f436d2420a18 100644 --- a/tools/include/linux/string.h +++ b/tools/include/linux/string.h @@ -8,7 +8,11 @@ void *memdup(const void *src, size_t len); int strtobool(const char *s, bool *res); -#ifdef __GLIBC__ +/* + * glibc based builds needs the extern while uClibc doesn't. + * However uClibc headers also define __GLIBC__ hence the hack below + */ +#if defined(__GLIBC__) && !defined(__UCLIBC__) extern size_t strlcpy(char *dest, const char *src, size_t size); #endif |
