aboutsummaryrefslogtreecommitdiffstats
path: root/testing/kbuild/strlcpy.patch
blob: 42b25bdadfedb9b2a205e9f6d827787c98047867 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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(__linux__) && !defined(__UCLIBC__)
 extern char *strlcpy(char *, const char *, size_t);
 #endif
 
diff --git a/src/kmk/Makefile.kmk b/src/kmk/Makefile.kmk
index 12b9697..db1deb2 100644
--- a/src/kmk/Makefile.kmk
+++ b/src/kmk/Makefile.kmk
@@ -101,7 +101,7 @@ kmkmissing_SOURCES.freebsd = \
 	glob/fnmatch.c
 
 kmkmissing_SOURCES.linux += \
-	kmkbuiltin/strlcpy.c
+	getloadavg.c
 
 kmkmissing_SOURCES.solaris = \
 	kmkbuiltin/strlcpy.c \