aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRuss Cox <rsc@swtch.com>2020-05-18 22:32:59 -0400
committerRuss Cox <rsc@swtch.com>2020-05-18 22:35:17 -0400
commit20c841bac102e777a3a1723724fa5d31018fefcc (patch)
tree41fea8e2896d43223bcd6f04920cd4e8e806ed88 /src
parentdea4dbdba6e8a4652e682627dce50503bca5c4b4 (diff)
downloadplan9port-20c841bac102e777a3a1723724fa5d31018fefcc.tar.gz
plan9port-20c841bac102e777a3a1723724fa5d31018fefcc.tar.bz2
plan9port-20c841bac102e777a3a1723724fa5d31018fefcc.zip
rc: avoid problematic internal names "var", "thread"
For AIX.
Diffstat (limited to 'src')
-rw-r--r--src/cmd/rc/rc.h6
1 files changed, 6 insertions, 0 deletions
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;