diff options
author | Ben Huntsman <BHuntsman@mail2.cu-portland.edu> | 2020-05-13 22:39:53 -0700 |
---|---|---|
committer | Russ Cox <rsc@swtch.com> | 2020-05-18 22:36:17 -0400 |
commit | 7a371bf93652573b3d57d50466d3ea22a6eebff2 (patch) | |
tree | 02f0e61ccc12c62bda50d987638e7b931db59c3f | |
parent | 20c841bac102e777a3a1723724fa5d31018fefcc (diff) | |
download | plan9port-7a371bf93652573b3d57d50466d3ea22a6eebff2.tar.gz plan9port-7a371bf93652573b3d57d50466d3ea22a6eebff2.tar.bz2 plan9port-7a371bf93652573b3d57d50466d3ea22a6eebff2.zip |
lib9: use __builtin_return_address on IBM XL/C
-rw-r--r-- | include/libc.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/libc.h b/include/libc.h index 7b4c3813..4bb537d6 100644 --- a/include/libc.h +++ b/include/libc.h @@ -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*); |