aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/kbuild/strlcpy.patch
diff options
context:
space:
mode:
Diffstat (limited to 'unmaintained/kbuild/strlcpy.patch')
-rw-r--r--unmaintained/kbuild/strlcpy.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/unmaintained/kbuild/strlcpy.patch b/unmaintained/kbuild/strlcpy.patch
new file mode 100644
index 0000000000..d0b3a0471d
--- /dev/null
+++ b/unmaintained/kbuild/strlcpy.patch
@@ -0,0 +1,13 @@
+diff --git a/src/kmk/kmkbuiltin/cp.c b/src/kmk/kmkbuiltin/cp.c
+index 44b76ab..85fec01 100644
+--- a/src/kmk/kmkbuiltin/cp.c
++++ b/src/kmk/kmkbuiltin/cp.c
+@@ -81,7 +81,7 @@ __FBSDID("$FreeBSD: src/bin/cp/cp.c,v 1.50 2004/04/06 20:06:44 markm Exp $");
+ #include "kmkbuiltin.h"
+ #include "kbuild_protection.h"
+
+-#if defined(_MSC_VER) || defined(__gnu_linux__) || defined(__linux__)
++#if defined(_MSC_VER) || defined(__gnu_linux__) && !defined(__UCLIBC__)
+ extern char *strlcpy(char *, const char *, size_t);
+ #endif
+