Merge pull request #1180 from barcharcraz/OpenBSDFix
Added define check for openBSD around fmtmsg.h stuff
This commit is contained in:
commit
b9b45c1bb4
3 changed files with 4 additions and 4 deletions
|
|
@ -846,7 +846,7 @@ var
|
||||||
FE_UPWARD* {.importc, header: "<fenv.h>".}: cint
|
FE_UPWARD* {.importc, header: "<fenv.h>".}: cint
|
||||||
FE_DFL_ENV* {.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
|
var
|
||||||
MM_HARD* {.importc, header: "<fmtmsg.h>".}: cint
|
MM_HARD* {.importc, header: "<fmtmsg.h>".}: cint
|
||||||
## Source of the condition is hardware.
|
## 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 fesetenv*(a1: ptr Tfenv): cint {.importc, header: "<fenv.h>".}
|
||||||
proc feupdateenv*(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,
|
proc fmtmsg*(a1: int, a2: cstring, a3: cint,
|
||||||
a4, a5, a6: cstring): cint {.importc, header: "<fmtmsg.h>".}
|
a4, a5, a6: cstring): cint {.importc, header: "<fmtmsg.h>".}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -295,7 +295,7 @@ when defined(ssl):
|
||||||
of protSSLv23:
|
of protSSLv23:
|
||||||
newCTX = SSL_CTX_new(SSLv23_method()) # SSlv2,3 and TLS1 support.
|
newCTX = SSL_CTX_new(SSLv23_method()) # SSlv2,3 and TLS1 support.
|
||||||
of protSSLv2:
|
of protSSLv2:
|
||||||
when not defined(linux):
|
when not defined(linux) and not defined(OpenBSD):
|
||||||
newCTX = SSL_CTX_new(SSLv2_method())
|
newCTX = SSL_CTX_new(SSLv2_method())
|
||||||
else:
|
else:
|
||||||
SSLError()
|
SSLError()
|
||||||
|
|
|
||||||
|
|
@ -270,7 +270,7 @@ proc OPENSSL_config*(configName: cstring){.cdecl, dynlib: DLLSSLName, importc.}
|
||||||
|
|
||||||
when not defined(windows):
|
when not defined(windows):
|
||||||
proc CRYPTO_set_mem_functions(a,b,c: pointer){.cdecl,
|
proc CRYPTO_set_mem_functions(a,b,c: pointer){.cdecl,
|
||||||
dynlib: DLLSSLName, importc.}
|
dynlib: DLLUtilName, importc.}
|
||||||
|
|
||||||
proc CRYPTO_malloc_init*() =
|
proc CRYPTO_malloc_init*() =
|
||||||
when not defined(windows):
|
when not defined(windows):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue