Skip to content

Commit

Permalink
encoding.iconv: add flag for OpenBSD to find iconv include and library
Browse files Browse the repository at this point in the history
Fix vlang#23573

Signed-off-by: Laurent Cheylus <[email protected]>
  • Loading branch information
lcheylus committed Jan 25, 2025
1 parent d710d9e commit afa177e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions vlib/encoding/iconv/iconv_nix.c.v
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit afa177e

Please sign in to comment.