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