tlib9: add getcallerpc.c (fixes build) - plan9port - [fork] Plan 9 from user space (HTM) git clone git://src.adamsgaard.dk/plan9port (DIR) Log (DIR) Files (DIR) Refs (DIR) README (DIR) LICENSE --- (DIR) commit 323e1a8fac276f008e6d5146a83cbc88edeabc87 (DIR) parent a18741729cc1460088d1ddaa365dfa6455a459ec (HTM) Author: Russ Cox <rsc@swtch.com> Date: Wed, 8 Jan 2020 22:27:29 -0500 lib9: add getcallerpc.c (fixes build) Diffstat: A src/lib9/getcallerpc.c | 13 +++++++++++++ 1 file changed, 13 insertions(+), 0 deletions(-) --- (DIR) diff --git a/src/lib9/getcallerpc.c b/src/lib9/getcallerpc.c t@@ -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; +}