Commit Diff


commit - a18741729cc1460088d1ddaa365dfa6455a459ec
commit + 323e1a8fac276f008e6d5146a83cbc88edeabc87
blob - /dev/null
blob + 3067f053c1113da46be5f346265a38984813394a (mode 644)
--- /dev/null
+++ src/lib9/getcallerpc.c
@@ -0,0 +1,13 @@
+#include <u.h>
+#include <libc.h>
+
+/*
+ * On gcc and clang, getcallerpc is a macro invoking a compiler builtin.
+ * If the macro in libc.h did not trigger, there's no implementation.
+ */
+#undef getcallerpc
+ulong
+getcallerpc(void *v)
+{
+	return 1;
+}