]> Pileus Git - ~andy/linux/blobdiff - tools/perf/feature-tests.mak
perf python scripting: Fixup cut'n'paste error in sctop script
[~andy/linux] / tools / perf / feature-tests.mak
index ddb68e601f0ec2f67558afef92d3506f7661cd82..b253db634f04b7e8ddfddd1cc33bb3ce8343a49a 100644 (file)
@@ -110,10 +110,21 @@ 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                                           \
-       'TMP="$(TMPOUT).$$$$";                                    \
+       'TMP="$(OUTPUT)$(TMPOUT).$$$$";                           \
         echo "$(1)" |                                            \
         $(CC) -x c - $(2) -o "$$TMP" > /dev/null 2>&1 && echo y; \
         rm -f "$$TMP"')