plan9port

fork of plan9port with libvec, libstr and libsdb
Log | Files | Refs | README | LICENSE

commit 20c841bac102e777a3a1723724fa5d31018fefcc
parent dea4dbdba6e8a4652e682627dce50503bca5c4b4
Author: Russ Cox <rsc@swtch.com>
Date:   Mon, 18 May 2020 22:32:59 -0400

rc: avoid problematic internal names "var", "thread"

For AIX.

Diffstat:
Msrc/cmd/rc/rc.h | 6++++++
1 file changed, 6 insertions(+), 0 deletions(-)

diff --git a/src/cmd/rc/rc.h b/src/cmd/rc/rc.h @@ -33,6 +33,12 @@ #undef pipe /* so that /dev/fd works */ #define searchpath rcsearchpath /* avoid new libc function */ +/* some systems define a global "var", "thread" */ +#undef var +#define var rcvar +#undef thread +#define thread rcthread + typedef struct tree tree; typedef struct word word; typedef struct io io;