summaryrefslogtreecommitdiff
path: root/rtl/bsd
diff options
context:
space:
mode:
authornickysn <nickysn@3ad0048d-3df7-0310-abae-a5850022a9f2>2019-03-08 16:22:53 +0000
committernickysn <nickysn@3ad0048d-3df7-0310-abae-a5850022a9f2>2019-03-08 16:22:53 +0000
commitfc19d9021135108952185a44828d7f3a963c24b0 (patch)
tree1daef7ee2b1009c0096ad5ce5969e74f0ba84b54 /rtl/bsd
parent75011a1dccc4c6e71d9fc48c69ea190c85ba139c (diff)
downloadfpc-fc19d9021135108952185a44828d7f3a963c24b0.tar.gz
* Adjust for OpenBSD struct changes in the 'dirent' structure. Based on OpenBSD
ports patch patch-fpcsrc_rtl_bsd_ostypes_inc git-svn-id: https://svn.freepascal.org/svn/fpc/trunk@41642 3ad0048d-3df7-0310-abae-a5850022a9f2
Diffstat (limited to 'rtl/bsd')
-rw-r--r--rtl/bsd/ostypes.inc10
1 files changed, 10 insertions, 0 deletions
diff --git a/rtl/bsd/ostypes.inc b/rtl/bsd/ostypes.inc
index d588fdcf21..fd4faf6684 100644
--- a/rtl/bsd/ostypes.inc
+++ b/rtl/bsd/ostypes.inc
@@ -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