From 3070264525b2324b4b371b2751c6a49abce79b51 Mon Sep 17 00:00:00 2001 From: Charlie Barto Date: Sun, 4 May 2014 23:48:38 -0400 Subject: [PATCH] Added define check for openBSD around fmtmsg.h stuff, OpenBSD does not actually include this header --- lib/posix/posix.nim | 4 ++-- 1 file 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: "".}: cint FE_DFL_ENV* {.importc, header: "".}: cint -when not defined(haiku): +when not defined(haiku) and not defined(OpenBSD): var MM_HARD* {.importc, header: "".}: cint ## Source of the condition is hardware. @@ -1816,7 +1816,7 @@ proc feholdexcept*(a1: ptr Tfenv): cint {.importc, header: "".} proc fesetenv*(a1: ptr Tfenv): cint {.importc, header: "".} proc feupdateenv*(a1: ptr Tfenv): cint {.importc, header: "".} -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: "".}