diff options
Diffstat (limited to 'src/expand/proc_macro.cpp')
-rw-r--r-- | src/expand/proc_macro.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/expand/proc_macro.cpp b/src/expand/proc_macro.cpp index 5c06a8ce..d34a91a5 100644 --- a/src/expand/proc_macro.cpp +++ b/src/expand/proc_macro.cpp @@ -24,7 +24,7 @@ # include <sys/wait.h> #endif -#ifdef __OpenBSD__ +#if defined(__OpenBSD__) || defined(__NetBSD__) extern char **environ; #endif @@ -797,7 +797,7 @@ ProcMacroInv::ProcMacroInv(const Span& sp, const char* executable, const ::HIR:: int stdout_pipes[2]; if( pipe(stdout_pipes) != 0) { - BUG(sp, "Unable to create stdin pipe pair for proc macro, " << strerror(errno)); + BUG(sp, "Unable to create stdout pipe pair for proc macro, " << strerror(errno)); } this->child_stdout = stdout_pipes[0]; // Read end |