From 20c841bac102e777a3a1723724fa5d31018fefcc Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Mon, 18 May 2020 22:32:59 -0400 Subject: rc: avoid problematic internal names "var", "thread" For AIX. --- src/cmd/rc/rc.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src') diff --git a/src/cmd/rc/rc.h b/src/cmd/rc/rc.h index 46ff9510..2fd6758b 100644 --- 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; -- cgit v1.2.3