Browse Source

libc/sysdeps: Fix common-generic stat.h for BE part 2

Previous patch only fixed the build. This patch fixes the behavior at
run-time as well.

It fixes "Value too large for defined data type" messages caused by
fstat syscall wrapper returning -EOVERFLOW.

Signed-off-by: Mischa Jonker <Mischa.Jonker@synopsys.com>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Mischa Jonker 10 years ago
parent
commit
cee1028b64
1 changed files with 1 additions and 1 deletions
  1. 1 1
      libc/sysdeps/linux/common-generic/bits/stat.h

+ 1 - 1
libc/sysdeps/linux/common-generic/bits/stat.h

@@ -63,8 +63,8 @@ struct stat
     unsigned long long __pad4;
     long __pad5;
     long st_size;				/* Size of file, in bytes. */
-    int __pad6;
     int st_blksize;				/* Optimal block size for I/O. */
+    int __pad6;
     long __pad7;
     long st_blocks;				/* Number 512-byte blocks allocated */
 # endif /* __LITTLE_ENDIAN */