commit 20c841bac102e777a3a1723724fa5d31018fefcc from: Russ Cox date: Tue May 19 02:35:17 2020 UTC rc: avoid problematic internal names "var", "thread" For AIX. commit - dea4dbdba6e8a4652e682627dce50503bca5c4b4 commit + 20c841bac102e777a3a1723724fa5d31018fefcc blob - 46ff95106c9ab1f9e12e49dd0dd99b2f607d4fe0 blob + 2fd6758b671838c3c9d23aff659bf32221ab52bd --- src/cmd/rc/rc.h +++ 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;