summary refs log tree commit diff stats
path: root/compiler
diff options
context:
space:
mode:
authorReimer Behrends <behrends@gmail.com>2014-09-27 18:05:30 +0200
committerReimer Behrends <behrends@gmail.com>2014-09-27 18:05:30 +0200
commitcb6441e73d976dcf59b1e55236887fe5d3a1d6ec (patch)
tree8e3954595c7f52c4a7f4cee371c4bfe0b85240c9 /compiler
parentf99c40f61bc47f98390aab42f686fcb697dc9ce8 (diff)
downloadNim-cb6441e73d976dcf59b1e55236887fe5d3a1d6ec.tar.gz
Use _setjmp()/_longjmp() only on BSD-like systems for now.
Diffstat (limited to 'compiler')
-rw-r--r--compiler/condsyms.nim4
1 files changed, 3 insertions, 1 deletions
diff --git a/compiler/condsyms.nim b/compiler/condsyms.nim
index a2d8b3564..238dbf5c7 100644
--- a/compiler/condsyms.nim
+++ b/compiler/condsyms.nim
@@ -136,5 +136,7 @@ proc initDefines*() =
   declareSymbol("emulatedthreadvars")
   if platform.OS[targetOS].props.contains(ospLacksThreadVars):
     defineSymbol("emulatedthreadvars")
-  if isDefined("posix"):
+  case targetOS
+  of osSolaris, osNetbsd, osFreebsd, osOpenbsd, osMacosx:
     defineSymbol("nimRawSetjmp")
+  else: discard