Browse Source

* Adjust for OpenBSD struct changes in the 'dir' structure. Based on OpenBSD
ports patch patch-fpcsrc_rtl_bsd_ostypes_inc

git-svn-id: trunk@41643 -

nickysn 6 years ago
parent
commit
7b00c732b8
1 changed files with 6 additions and 0 deletions
  1. 6 0
      rtl/bsd/ostypes.inc

+ 6 - 0
rtl/bsd/ostypes.inc

@@ -195,6 +195,11 @@ TYPE
         dd_size   : clong;        // amount of data returned by getdirentries
         dd_size   : clong;        // amount of data returned by getdirentries
         dd_buf    : pchar;        // data buffer
         dd_buf    : pchar;        // data buffer
         dd_len    : cint;         // size of data buffer
         dd_len    : cint;         // size of data buffer
+{$ifdef openbsd}
+        dd_curpos : off_t;
+        dd_lock   : pointer;
+        dd_rewind : clong;
+{$else not openbsd}
 {$ifdef netbsdpowerpc}
 {$ifdef netbsdpowerpc}
         dd_pad1   : cint;
         dd_pad1   : cint;
         dd_seek   : cint64;        // magic cookie returned by getdirentries
         dd_seek   : cint64;        // magic cookie returned by getdirentries
@@ -207,6 +212,7 @@ TYPE
         __dd_lock : pthread_mutex_t; // for thread locking
         __dd_lock : pthread_mutex_t; // for thread locking
         __dd_td : pointer;        // telldir position recording
         __dd_td : pointer;        // telldir position recording
 {$endif}
 {$endif}
+{$endif not openbsd}
    end;
    end;
    TDir    = dir;
    TDir    = dir;
    pDir    = ^dir;
    pDir    = ^dir;