mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-15 21:19:26 +02:00
* 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:
parent
c183b49125
commit
2564588bf7
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user