diff options
author | Brian Callahan <bcallah@openbsd.org> | 2018-02-19 13:35:44 -0500 |
---|---|---|
committer | Brian Callahan <bcallah@openbsd.org> | 2018-02-19 13:35:44 -0500 |
commit | a30e54931004c5ad41a8a7b7233c31b40063c17b (patch) | |
tree | 2a21ebd1e5f8edaad95e8bb551d90a553e2b181a /src/expand/proc_macro.cpp | |
parent | 277c6721480be163d8e7e4944acfe9c7c1d5278f (diff) | |
download | mrust-a30e54931004c5ad41a8a7b7233c31b40063c17b.tar.gz |
Add OpenBSD support.
Diffstat (limited to 'src/expand/proc_macro.cpp')
-rw-r--r-- | src/expand/proc_macro.cpp | 4 |
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: |