aboutsummaryrefslogtreecommitdiffstats
path: root/tools/include/linux
diff options
context:
space:
mode:
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>2016-09-13 03:12:20 +0200
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2016-09-13 03:12:20 +0200
commitf75ee9a8816824683e22aee2790f43a9fc43c613 (patch)
tree8eb48525bcd0291668d56d0bc4e8a0467467b9b3 /tools/include/linux
parentACPI / APD: Add device HID for Vulcan SPI controller (diff)
parentserial: 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.h6
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