summaryrefslogtreecommitdiff
path: root/tools/perf/feature-tests.mak
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf/feature-tests.mak')
-rw-r--r--tools/perf/feature-tests.mak11
1 files changed, 11 insertions, 0 deletions
diff --git a/tools/perf/feature-tests.mak b/tools/perf/feature-tests.mak
index 7a7b60859053..b253db634f04 100644
--- a/tools/perf/feature-tests.mak
+++ b/tools/perf/feature-tests.mak
@@ -110,6 +110,17 @@ int main(void)
}
endef
+define SOURCE_STRLCPY
+#include <stdlib.h>
+extern size_t strlcpy(char *dest, const char *src, size_t size);
+
+int main(void)
+{
+ strlcpy(NULL, NULL, 0);
+ return 0;
+}
+endef
+
# try-cc
# Usage: option = $(call try-cc, source-to-build, cc-options)
try-cc = $(shell sh -c \