From 323e1a8fac276f008e6d5146a83cbc88edeabc87 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Wed, 8 Jan 2020 22:27:29 -0500 Subject: lib9: add getcallerpc.c (fixes build) --- src/lib9/getcallerpc.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 src/lib9/getcallerpc.c diff --git a/src/lib9/getcallerpc.c b/src/lib9/getcallerpc.c new file mode 100644 index 00000000..3067f053 --- /dev/null +++ b/src/lib9/getcallerpc.c @@ -0,0 +1,13 @@ +#include +#include + +/* + * 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; +} -- cgit v1.2.3