trc: avoid problematic internal names "var", "thread" - plan9port - [fork] Plan 9 from user space
 (HTM) git clone git://src.adamsgaard.dk/plan9port
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit 20c841bac102e777a3a1723724fa5d31018fefcc
 (DIR) parent dea4dbdba6e8a4652e682627dce50503bca5c4b4
 (HTM) 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:
         M src/cmd/rc/rc.h                     |       6 ++++++
       
       1 file changed, 6 insertions(+), 0 deletions(-)
       ---
 (DIR) diff --git a/src/cmd/rc/rc.h b/src/cmd/rc/rc.h
       t@@ -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;