Explorar o código

* another sparc/linux fix for stat (record must NOT be packed, or
variables of that type will not be aligned properly)

git-svn-id: trunk@7460 -

Jonas Maebe %!s(int64=18) %!d(string=hai) anos
pai
achega
b9a97ae891
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  1. 4 1
      rtl/linux/sparc/stat.inc

+ 4 - 1
rtl/linux/sparc/stat.inc

@@ -14,7 +14,10 @@
 
 {$IFNDEF FPC_USE_LIBC}
 
-  Stat = packed record  // No unix typing because of differences
+  { do NOT declare this record as packed, because it needs to be aligned }
+  { to its largest member (i.e., 8 bytes), and declaring it as packed    }
+  { disables that                                                        }
+  Stat = record  // No unix typing because of differences
     case byte of
     0:
       (dev   : culonglong;