diff --git a/ext/iconv/iconv.c b/ext/iconv/iconv.c index 4241b7c2887fb..90fe2d45be247 100644 --- a/ext/iconv/iconv.c +++ b/ext/iconv/iconv.c @@ -43,9 +43,12 @@ #undef iconv #endif -#if defined(__NetBSD__) +#if defined(__NetBSD__) || defined(__sun) // unfortunately, netbsd has still the old non posix conformant signature // libiconv tends to match the eventual system's iconv too. +// +// When the SUSv3 API is enabled, it switches to the alternative +// iconv api signature. #define ICONV_CONST const #else #define ICONV_CONST