Skip to content

Commit ec263fd

Browse files
committed
ext/iconv fix solaris/illumos which can support const/non const versions.
1 parent 6bf5bde commit ec263fd

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

ext/iconv/iconv.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,12 @@
4343
#undef iconv
4444
#endif
4545

46-
#if defined(__NetBSD__)
46+
#if defined(__NetBSD__) || (defined(__sun) && !defined(_XPG6))
4747
// unfortunately, netbsd has still the old non posix conformant signature
4848
// libiconv tends to match the eventual system's iconv too.
49+
//
50+
// When the SUSv3 API is enabled, it switches to the alternative
51+
// iconv api signature.
4952
#define ICONV_CONST const
5053
#else
5154
#define ICONV_CONST

0 commit comments

Comments
 (0)