do not set mem functions on osx

This commit is contained in:
Harald Lapp
2015-03-12 12:48:28 +01:00
parent 3aad16e337
commit 3ccf667899

View File

@@ -298,7 +298,7 @@ when not useWinVersion:
if p != nil: dealloc(p)
proc CRYPTO_malloc_init*() =
when not useWinVersion:
when not useWinVersion and not defined(macosx):
CRYPTO_set_mem_functions(allocWrapper, reallocWrapper, deallocWrapper)
proc SSL_CTX_ctrl*(ctx: SslCtx, cmd: cInt, larg: int, parg: pointer): int{.