diff options
| author | Russ Cox <rsc@swtch.com> | 2020-01-08 22:27:29 -0500 |
|---|---|---|
| committer | Russ Cox <rsc@swtch.com> | 2020-01-08 22:27:51 -0500 |
| commit | 323e1a8fac276f008e6d5146a83cbc88edeabc87 (patch) | |
| tree | 4f767aeccf35d69b14644873e305bd9073973b2b /src/lib9 | |
| parent | a18741729cc1460088d1ddaa365dfa6455a459ec (diff) | |
| download | plan9port-323e1a8fac276f008e6d5146a83cbc88edeabc87.tar.gz plan9port-323e1a8fac276f008e6d5146a83cbc88edeabc87.zip | |
lib9: add getcallerpc.c (fixes build)
Diffstat (limited to 'src/lib9')
| -rw-r--r-- | src/lib9/getcallerpc.c | 13 |
1 files changed, 13 insertions, 0 deletions
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 <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; +} |
