mirror of
https://github.com/nim-lang/Nim.git
synced 2026-07-19 23:41:29 +00:00
Fixed compilation error with -d:nimDebugDlOpen
This commit is contained in:
@@ -74,7 +74,8 @@ when defined(posix):
|
||||
when defined(nimDebugDlOpen):
|
||||
let error = dlerror()
|
||||
if error != nil:
|
||||
c_fprintf(c_stderr, "%s\n", error)
|
||||
stderr.write(error)
|
||||
stderr.rawWrite("\n")
|
||||
|
||||
proc nimGetProcAddr(lib: LibHandle, name: cstring): ProcAddr =
|
||||
result = dlsym(lib, name)
|
||||
|
||||
Reference in New Issue
Block a user