summaryrefslogtreecommitdiff
path: root/src/expand/proc_macro.cpp
diff options
context:
space:
mode:
authorBrian Callahan <bcallah@openbsd.org>2018-02-19 13:35:44 -0500
committerBrian Callahan <bcallah@openbsd.org>2018-02-19 13:35:44 -0500
commita30e54931004c5ad41a8a7b7233c31b40063c17b (patch)
tree2a21ebd1e5f8edaad95e8bb551d90a553e2b181a /src/expand/proc_macro.cpp
parent277c6721480be163d8e7e4944acfe9c7c1d5278f (diff)
downloadmrust-a30e54931004c5ad41a8a7b7233c31b40063c17b.tar.gz
Add OpenBSD support.
Diffstat (limited to 'src/expand/proc_macro.cpp')
-rw-r--r--src/expand/proc_macro.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/expand/proc_macro.cpp b/src/expand/proc_macro.cpp
index 3eb0c85d..5c06a8ce 100644
--- a/src/expand/proc_macro.cpp
+++ b/src/expand/proc_macro.cpp
@@ -24,6 +24,10 @@
# include <sys/wait.h>
#endif
+#ifdef __OpenBSD__
+extern char **environ;
+#endif
+
#define NEWNODE(_ty, ...) ::AST::ExprNodeP(new ::AST::ExprNode##_ty(__VA_ARGS__))
class Decorator_ProcMacroDerive: