lib9: use __builtin_return_address on IBM XL/C

This commit is contained in:
Ben Huntsman 2020-05-13 22:39:53 -07:00 committed by Russ Cox
parent 20c841bac1
commit 7a371bf936

View file

@ -385,7 +385,7 @@ extern int exitcode(char*);
extern void exits(char*);
extern double p9frexp(double, int*);
extern ulong getcallerpc(void*);
#if defined(__GNUC__) || defined(__clang__)
#if defined(__GNUC__) || defined(__clang__) || defined(__IBMC__)
#define getcallerpc(x) ((ulong)__builtin_return_address(0))
#endif
extern char* p9getenv(char*);