diff options
author | nickysn <nickysn@3ad0048d-3df7-0310-abae-a5850022a9f2> | 2019-03-08 16:26:40 +0000 |
---|---|---|
committer | nickysn <nickysn@3ad0048d-3df7-0310-abae-a5850022a9f2> | 2019-03-08 16:26:40 +0000 |
commit | 54abdaf91f89107057aa974ec49874d24e7d457d (patch) | |
tree | 8940a9a7bc2b00a5bf2313c44e1b0d3be3ccdd38 /rtl/bsd | |
parent | fc19d9021135108952185a44828d7f3a963c24b0 (diff) | |
download | fpc-54abdaf91f89107057aa974ec49874d24e7d457d.tar.gz |
* Adjust for OpenBSD struct changes in the 'dir' structure. Based on OpenBSD
ports patch patch-fpcsrc_rtl_bsd_ostypes_inc
git-svn-id: https://svn.freepascal.org/svn/fpc/trunk@41643 3ad0048d-3df7-0310-abae-a5850022a9f2
Diffstat (limited to 'rtl/bsd')
-rw-r--r-- | rtl/bsd/ostypes.inc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/rtl/bsd/ostypes.inc b/rtl/bsd/ostypes.inc index fd4faf6684..89c5145830 100644 --- a/rtl/bsd/ostypes.inc +++ b/rtl/bsd/ostypes.inc @@ -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; |