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 #23573) (#23575)
  • Loading branch information
lcheylus authored Jan 25, 2025
1 parent 5b27233 commit c225e04
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 c225e04

Please sign in to comment.