diff options
author | jonas <jonas@3ad0048d-3df7-0310-abae-a5850022a9f2> | 2011-09-17 09:31:32 +0000 |
---|---|---|
committer | jonas <jonas@3ad0048d-3df7-0310-abae-a5850022a9f2> | 2011-09-17 09:31:32 +0000 |
commit | 8fb1d34d52b1cc213953aee545c170df7250fa37 (patch) | |
tree | 6fc69cf4b0250ff6fba7352a5e27ae096617397b /rtl | |
parent | 967de3ee126a31bfc050c35deba3195ba1e745a5 (diff) | |
download | fpc-8fb1d34d52b1cc213953aee545c170df7250fa37.tar.gz |
* fixed stat/fstat-related types for iphonesim platform
(mantis #20249)
git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@19078 3ad0048d-3df7-0310-abae-a5850022a9f2
Diffstat (limited to 'rtl')
-rw-r--r-- | rtl/bsd/ostypes.inc | 2 | ||||
-rw-r--r-- | rtl/darwin/ptypes.inc | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/rtl/bsd/ostypes.inc b/rtl/bsd/ostypes.inc index c6fec5a9dd..35c4d9bfaa 100644 --- a/rtl/bsd/ostypes.inc +++ b/rtl/bsd/ostypes.inc @@ -30,7 +30,7 @@ {$endif} {$endif} -{$if defined(darwin) and defined(cpuarm)} +{$if (defined(darwin) and defined(cpuarm)) or defined(iphonesim)} {$define darwinarm} {$endif} diff --git a/rtl/darwin/ptypes.inc b/rtl/darwin/ptypes.inc index db2fccf53c..99a24c0ef4 100644 --- a/rtl/darwin/ptypes.inc +++ b/rtl/darwin/ptypes.inc @@ -35,7 +35,7 @@ type pGid = ^gid_t; TIOCtlRequest = cuLong; -{$ifndef cpuarm} +{$if not defined(cpuarm) and not defined(iphonesim)} ino_t = cuint32; { used for file serial numbers } {$else} ino_t = cuint64; @@ -144,7 +144,7 @@ type val: array[0..1] of cint32; end; -{$ifdef cpuarm} +{$if defined(cpuarm) or defined(iphonesim)} { structure used on iPhoneOS and available on Mac OS X 10.6 and later } tstatfs = record bsize : cuint32; |