From a30e54931004c5ad41a8a7b7233c31b40063c17b Mon Sep 17 00:00:00 2001 From: Brian Callahan Date: Mon, 19 Feb 2018 13:35:44 -0500 Subject: Add OpenBSD support. --- src/expand/proc_macro.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/expand/proc_macro.cpp') 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 #endif +#ifdef __OpenBSD__ +extern char **environ; +#endif + #define NEWNODE(_ty, ...) ::AST::ExprNodeP(new ::AST::ExprNode##_ty(__VA_ARGS__)) class Decorator_ProcMacroDerive: -- cgit v1.2.3