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