encoding.iconv: add flag for OpenBSD to find iconv include and library (fix #23573) (#23575)

This commit is contained in:
Laurent Cheylus 2025-01-25 17:41:05 +00:00 committed by GitHub
parent 5b272332fb
commit c225e0415a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2,8 +2,12 @@ module iconv
// Module iconv provides functions convert between vstring(UTF8) to/from different encodings.
#flag openbsd -I/usr/local/include
#include <iconv.h>
#flag darwin -liconv
#flag openbsd -L/usr/local/lib -liconv
fn C.iconv_open(tocode charptr, fromcode charptr) voidptr
fn C.iconv_close(cd voidptr) int