Browse Source

Set iconv_is_in_libc macro for DragonFly OS

(cherry picked from commit a342b74f6603ed4de7cba8430c9282cfd8324477)
Pierre Muller 2 years ago
parent
commit
0c53c25dbf
1 changed files with 8 additions and 0 deletions
  1. 8 0
      rtl/unix/cwstring.pp

+ 8 - 0
rtl/unix/cwstring.pp

@@ -38,6 +38,14 @@ implementation
   {$endif}
   {$endif}
 {$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
 { Modern FreeBSD releases also claim to have iconv
   function inside libc, at least
   function inside libc, at least
   this is stated explicitly in iconv(3) man
   this is stated explicitly in iconv(3) man