Skip to content

Commit

Permalink
[std/encodings] fix iconv headers on OpenBSD (#17872)
Browse files Browse the repository at this point in the history
  • Loading branch information
ringabout authored Apr 27, 2021
1 parent b03d6c9 commit d881a05
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/pure/encodings.nim
Original file line number Diff line number Diff line change
Expand Up @@ -282,8 +282,10 @@ else:

var errno {.importc, header: "<errno.h>".}: cint

when defined(freebsd) or defined(netbsd):
when defined(bsd):
{.pragma: importIconv, cdecl, header: "<iconv.h>".}
when defined(openbsd):
{.passL: "-liconv".}
else:
{.pragma: importIconv, cdecl, dynlib: iconvDll.}

Expand Down

0 comments on commit d881a05

Please sign in to comment.