fa3bfd
Superseded by this upstream patch:
fa3bfd
fa3bfd
commit a06b40cdf5ba0d2ab4f9b4c77d21e45ff284fac7
fa3bfd
Author: Szabolcs Nagy <szabolcs.nagy@arm.com>
fa3bfd
Date:   Tue May 26 22:27:23 2015 +0530
fa3bfd
fa3bfd
    struct stat is not posix conform
fa3bfd
bca718
Index: glibc-2.17-c758a686/ports/sysdeps/unix/sysv/linux/generic/bits/stat.h
bca718
===================================================================
bca718
--- glibc-2.17-c758a686.orig/ports/sysdeps/unix/sysv/linux/generic/bits/stat.h
bca718
+++ glibc-2.17-c758a686/ports/sysdeps/unix/sysv/linux/generic/bits/stat.h
bca718
@@ -66,7 +66,7 @@ struct stat
bca718
     __blksize_t st_blksize;	/* Optimal block size for I/O.  */
bca718
     int __pad2;
bca718
     __field64(__blkcnt_t, __blkcnt64_t, st_blocks);  /* 512-byte blocks */
bca718
-#ifdef __USE_MISC
bca718
+#if defined __USE_MISC || defined __USE_XOPEN2K8
bca718
     /* Nanosecond resolution timestamps are stored in a format
bca718
        equivalent to 'struct timespec'.  This is the type used
bca718
        whenever possible but the Unix namespace rules do not allow the
bca718
@@ -107,7 +107,7 @@ struct stat64
bca718
     __blksize_t st_blksize;	/* Optimal block size for I/O.  */
bca718
     int __pad2;
bca718
     __blkcnt64_t st_blocks;	/* Nr. 512-byte blocks allocated.  */
bca718
-#ifdef __USE_MISC
bca718
+#if defined __USE_MISC || defined __USE_XOPEN2K8
bca718
     /* Nanosecond resolution timestamps are stored in a format
bca718
        equivalent to 'struct timespec'.  This is the type used
bca718
        whenever possible but the Unix namespace rules do not allow the
bca718
Index: glibc-2.17-c758a686/ports/sysdeps/unix/sysv/linux/ia64/bits/stat.h
bca718
===================================================================
bca718
--- glibc-2.17-c758a686.orig/ports/sysdeps/unix/sysv/linux/ia64/bits/stat.h
bca718
+++ glibc-2.17-c758a686/ports/sysdeps/unix/sysv/linux/ia64/bits/stat.h
bca718
@@ -41,7 +41,7 @@ struct stat
bca718
     int pad0;
bca718
     __dev_t st_rdev;		/* Device number, if device.  */
bca718
     __off_t st_size;		/* Size of file, in bytes.  */
bca718
-#ifdef __USE_MISC
bca718
+#if defined __USE_MISC || defined __USE_XOPEN2K8
bca718
     /* Nanosecond resolution timestamps are stored in a format
bca718
        equivalent to 'struct timespec'.  This is the type used
bca718
        whenever possible but the Unix namespace rules do not allow the
bca718
@@ -80,7 +80,7 @@ struct stat64
bca718
     int pad0;
bca718
     __dev_t st_rdev;		/* Device number, if device.  */
bca718
     __off_t st_size;		/* Size of file, in bytes.  */
bca718
-#ifdef __USE_MISC
bca718
+#if defined __USE_MISC || defined __USE_XOPEN2K8
bca718
     /* Nanosecond resolution timestamps are stored in a format
bca718
        equivalent to 'struct timespec'.  This is the type used
bca718
        whenever possible but the Unix namespace rules do not allow the