* Adjust for OpenBSD struct changes in the 'dirent' structure. Based on OpenBSD

ports patch patch-fpcsrc_rtl_bsd_ostypes_inc

git-svn-id: trunk@41642 -
This commit is contained in:
nickysn 2019-03-08 16:22:53 +00:00
parent c183b49125
commit 2564588bf7

View File

@ -167,6 +167,16 @@ TYPE
d_unused2 : cuint32; // reserved
d_name : array[0..255] of char; // name, null terminated
end;
{$elseif defined(openbsd)}
dirent = record
d_fileno : ino_t;
d_off : off_t;
d_reclen : cuint16; // length of this record
d_type : cuint8; // file type, see below
d_namlen : cuint8; // length of string in d_name
d_padding : array[0..3] of cuint8;
d_name : array[0..(255 + 1)-1] of char; // name must be no longer than this
end;
{$else}
dirent = record
d_fileno : cuint32; // file number of entry