Browse Source

* link libbsd for AIX, because several UNIX routines are part of its BSD
Compatibility library

git-svn-id: trunk@20788 -

Jonas Maebe 13 years ago
parent
commit
7c0469e1fd
1 changed files with 6 additions and 0 deletions
  1. 6 0
      rtl/unix/oscdeclh.inc

+ 6 - 0
rtl/unix/oscdeclh.inc

@@ -19,6 +19,12 @@
 {   var
 {   var
      Errno : cint; external clib name 'errno';}
      Errno : cint; external clib name 'errno';}
 
 
+{$if defined(aix) and not defined(FPC_IS_SYSTEM)}
+{ in AIX, several UNIX routines are part of the "compatibility interface for
+  older Berkeley Software Distribution (BSD) system programs" }
+{$linklib libbsd}
+{$endif aix}
+
 Type TGrpArr = Array [0..0] of TGid;            { C style array workarounds}
 Type TGrpArr = Array [0..0] of TGid;            { C style array workarounds}
      pGrpArr = ^TGrpArr;
      pGrpArr = ^TGrpArr;
      TFilDes = Array [0..1] of cInt;
      TFilDes = Array [0..1] of cInt;