Browse Source

Set iconv_is_in_libc macro for DragonFly OS

Pierre Muller 2 years ago
parent
commit
a342b74f66
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