[std/encodings] fix iconv headers on OpenBSD (#17872)
This commit is contained in:
parent
b03d6c9b2f
commit
d881a05bf6
1 changed files with 3 additions and 1 deletions
|
|
@ -282,8 +282,10 @@ else:
|
||||||
|
|
||||||
var errno {.importc, header: "<errno.h>".}: cint
|
var errno {.importc, header: "<errno.h>".}: cint
|
||||||
|
|
||||||
when defined(freebsd) or defined(netbsd):
|
when defined(bsd):
|
||||||
{.pragma: importIconv, cdecl, header: "<iconv.h>".}
|
{.pragma: importIconv, cdecl, header: "<iconv.h>".}
|
||||||
|
when defined(openbsd):
|
||||||
|
{.passL: "-liconv".}
|
||||||
else:
|
else:
|
||||||
{.pragma: importIconv, cdecl, dynlib: iconvDll.}
|
{.pragma: importIconv, cdecl, dynlib: iconvDll.}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue