2
0
Эх сурвалжийг харах

* 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 18 жил өмнө
parent
commit
b9a97ae891

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

@@ -14,7 +14,10 @@
 
 
 {$IFNDEF FPC_USE_LIBC}
 {$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
     case byte of
     0:
     0:
       (dev   : culonglong;
       (dev   : culonglong;