summaryrefslogtreecommitdiff
path: root/src/expand/proc_macro.cpp
diff options
context:
space:
mode:
authorJohn Hodge (Mutabah) <acessdev@gmail.com>2018-02-21 20:14:43 +0800
committerGitHub <noreply@github.com>2018-02-21 20:14:43 +0800
commit350769c002b51c7fcb7e2d632222fbae3e7a8ab5 (patch)
treefe47ec09ce838c1744397745fba8106b8a1c427e /src/expand/proc_macro.cpp
parentaec2d67316fae536e68062d7a5ba4e0145b7d587 (diff)
parenta30e54931004c5ad41a8a7b7233c31b40063c17b (diff)
downloadmrust-350769c002b51c7fcb7e2d632222fbae3e7a8ab5.tar.gz
Merge pull request #58 from ibara/master
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: