summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
authorDominik Picheta <dominikpicheta@googlemail.com>2015-12-25 14:30:23 +0000
committerDominik Picheta <dominikpicheta@googlemail.com>2015-12-25 14:30:23 +0000
commitcbab2ecea2162ed442d02f57742c5586a4781c06 (patch)
treea164d95ff74c6c83d383b945d2499fb3415e73ed /lib
parentb822d2f6169ce1a77bb5c808f0caff608bdc68c6 (diff)
parent25e862b9bced07435a2ab1108a47749401edda06 (diff)
downloadNim-cbab2ecea2162ed442d02f57742c5586a4781c06.tar.gz
Merge pull request #3663 from def-/netbsd-fix
Fix osproc compilation on NetBSD, use workaround for missing execvpe
Diffstat (limited to 'lib')
-rw-r--r--lib/pure/osproc.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/pure/osproc.nim b/lib/pure/osproc.nim
index 7a1e14a57..b703fab63 100644
--- a/lib/pure/osproc.nim
+++ b/lib/pure/osproc.nim
@@ -886,7 +886,7 @@ elif not defined(useNimRtl):
     discard write(data.pErrorPipe[writeIdx], addr error, sizeof(error))
     exitnow(1)
 
-  when defined(macosx) or defined(freebsd):
+  when defined(macosx) or defined(freebsd) or defined(netbsd):
     var environ {.importc.}: cstringArray
 
   proc startProcessAfterFork(data: ptr StartProcessData) =
@@ -916,7 +916,7 @@ elif not defined(useNimRtl):
     discard fcntl(data.pErrorPipe[writeIdx], F_SETFD, FD_CLOEXEC)
 
     if data.optionPoUsePath:
-      when defined(macosx) or defined(freebsd):
+      when defined(macosx) or defined(freebsd) or defined(netbsd):
         # MacOSX doesn't have execvpe, so we need workaround.
         # On MacOSX we can arrive here only from fork, so this is safe:
         environ = data.sysEnv