Browse Source

* fixed stat/fstat-related types for iphonesim platform
(mantis #20249)

git-svn-id: trunk@19078 -

Jonas Maebe 14 years ago
parent
commit
6920c7a0c1
2 changed files with 3 additions and 3 deletions
  1. 1 1
      rtl/bsd/ostypes.inc
  2. 2 2
      rtl/darwin/ptypes.inc

+ 1 - 1
rtl/bsd/ostypes.inc

@@ -30,7 +30,7 @@
   {$endif}
   {$endif}
 {$endif}
 {$endif}
 
 
-{$if defined(darwin) and defined(cpuarm)}
+{$if (defined(darwin) and defined(cpuarm)) or defined(iphonesim)}
   {$define darwinarm}
   {$define darwinarm}
 {$endif}
 {$endif}
 
 

+ 2 - 2
rtl/darwin/ptypes.inc

@@ -35,7 +35,7 @@ type
     pGid     = ^gid_t;
     pGid     = ^gid_t;
     TIOCtlRequest = cuLong;
     TIOCtlRequest = cuLong;
 
 
-{$ifndef cpuarm}
+{$if not defined(cpuarm) and not defined(iphonesim)}
     ino_t    = cuint32;         { used for file serial numbers }
     ino_t    = cuint32;         { used for file serial numbers }
 {$else}
 {$else}
     ino_t    = cuint64;
     ino_t    = cuint64;
@@ -144,7 +144,7 @@ type
           val: array[0..1] of cint32;
           val: array[0..1] of cint32;
      end;
      end;
 
 
-{$ifdef cpuarm}
+{$if defined(cpuarm) or defined(iphonesim)}
      { structure used on iPhoneOS and available on Mac OS X 10.6 and later }
      { structure used on iPhoneOS and available on Mac OS X 10.6 and later }
      tstatfs = record
      tstatfs = record
           bsize : cuint32;
           bsize : cuint32;