summary refs log tree commit diff stats
path: root/lib/posix
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2014-05-24 01:35:58 +0200
committerAndreas Rumpf <rumpf_a@web.de>2014-05-24 01:35:58 +0200
commitb9b45c1bb447304b8b0a06dd80de2d1dd8ff58fc (patch)
tree2471760a79cf28adf984b78674d6ac4c89c6d692 /lib/posix
parentc6c7c651e6c76754b19ed41f37c4e49f285be937 (diff)
parent46d4e5d052f43a1e2d7e93ef2cf431b0a0201ee5 (diff)
downloadNim-b9b45c1bb447304b8b0a06dd80de2d1dd8ff58fc.tar.gz
Merge pull request #1180 from barcharcraz/OpenBSDFix
Added define check for openBSD around fmtmsg.h stuff
Diffstat (limited to 'lib/posix')
-rw-r--r--lib/posix/posix.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/posix/posix.nim b/lib/posix/posix.nim
index e206447cc..cdca826ca 100644
--- a/lib/posix/posix.nim
+++ b/lib/posix/posix.nim
@@ -846,7 +846,7 @@ var
   FE_UPWARD* {.importc, header: "<fenv.h>".}: cint
   FE_DFL_ENV* {.importc, header: "<fenv.h>".}: cint
 
-when not defined(haiku):
+when not defined(haiku) and not defined(OpenBSD):
   var
     MM_HARD* {.importc, header: "<fmtmsg.h>".}: cint
       ## Source of the condition is hardware.
@@ -1816,7 +1816,7 @@ proc feholdexcept*(a1: ptr Tfenv): cint {.importc, header: "<fenv.h>".}
 proc fesetenv*(a1: ptr Tfenv): cint {.importc, header: "<fenv.h>".}
 proc feupdateenv*(a1: ptr Tfenv): cint {.importc, header: "<fenv.h>".}
 
-when not defined(haiku):
+when not defined(haiku) and not defined(OpenBSD):
   proc fmtmsg*(a1: int, a2: cstring, a3: cint,
               a4, a5, a6: cstring): cint {.importc, header: "<fmtmsg.h>".}