mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-12 11:10:07 +00:00
lib9: add getcallerpc.c (fixes build)
This commit is contained in:
parent
a18741729c
commit
323e1a8fac
1 changed files with 13 additions and 0 deletions
13
src/lib9/getcallerpc.c
Normal file
13
src/lib9/getcallerpc.c
Normal file
|
@ -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;
|
||||
}
|
Loading…
Reference in a new issue