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