Sfoglia il codice sorgente

* 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 anni fa
parent
commit
b9a97ae891
1 ha cambiato i file con 4 aggiunte e 1 eliminazioni
  1. 4 1
      rtl/linux/sparc/stat.inc

+ 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;