diff --git a/rtl/unix/cwstring.pp b/rtl/unix/cwstring.pp index 4e70558d4c..0322320253 100644 --- a/rtl/unix/cwstring.pp +++ b/rtl/unix/cwstring.pp @@ -27,9 +27,11 @@ implementation {$ifndef linux} // Linux (and maybe glibc platforms in general), have iconv in glibc. {$ifndef FreeBSD5} +{$ifndef SunOS} {$linklib iconv} {$define useiconv} {$endif} +{$endif} {$endif linux} Uses @@ -42,7 +44,7 @@ Uses Const {$ifndef useiconv} - libiconvname='c'; // is in libc under Linux. + libiconvname='c'; // is in libc for several OSes {$else} libiconvname='iconv'; {$endif}