* 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 -
This commit is contained in:
nickysn 2019-03-08 16:26:40 +00:00
parent 2564588bf7
commit 7b00c732b8

View File

@ -195,6 +195,11 @@ TYPE
dd_size : clong; // amount of data returned by getdirentries
dd_buf : pchar; // 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}
dd_pad1 : cint;
dd_seek : cint64; // magic cookie returned by getdirentries
@ -207,6 +212,7 @@ TYPE
__dd_lock : pthread_mutex_t; // for thread locking
__dd_td : pointer; // telldir position recording
{$endif}
{$endif not openbsd}
end;
TDir = dir;
pDir = ^dir;