浏览代码

Set iconv_is_in_libc macro for DragonFly OS

(cherry picked from commit a342b74f6603ed4de7cba8430c9282cfd8324477)
Pierre Muller 2 年之前
父节点
当前提交
0c53c25dbf
共有 1 个文件被更改,包括 8 次插入0 次删除
  1. 8 0
      rtl/unix/cwstring.pp

+ 8 - 0
rtl/unix/cwstring.pp

@@ -38,6 +38,14 @@ implementation
   {$endif}
 {$endif}
 
+{$ifdef dragonfly}
+  { iconv function are included inside libc for DragonFly version 6.3 }
+  { See https://man.dragonflybsd.org/?command=iconv&section=3 }
+  {$ifndef DISABLE_ICONV_LIBC}
+    {$define iconv_is_in_libc}
+  {$endif}
+{$endif}
+
 { Modern FreeBSD releases also claim to have iconv
   function inside libc, at least
   this is stated explicitly in iconv(3) man