diff --git a/ext/iconv/iconv.c b/ext/iconv/iconv.c index 092e15669875e..2b19b1e3c7828 100644 --- a/ext/iconv/iconv.c +++ b/ext/iconv/iconv.c @@ -43,7 +43,7 @@ #undef iconv #endif -#if defined(__NetBSD__) +#if defined(__NetBSD__) || (defined(__sun) && defined(__SVR4)) // unfortunately, netbsd has still the old non posix conformant signature // libiconv tends to match the eventual system's iconv too. #define ICONV_CONST const