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

For AIX.
This commit is contained in:
Russ Cox 2020-05-18 22:32:59 -04:00
parent dea4dbdba6
commit 20c841bac1

View file

@ -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;