y2038: Use a common definition for stat for sparc32
The sparc32 misses support for support done by 4e8521333b
.
Checked on sparcv9-linux-gnu.
This commit is contained in:
parent
a0f0c08e4f
commit
d2b1254db2
|
@ -28,6 +28,9 @@
|
|||
|
||||
struct stat
|
||||
{
|
||||
#ifdef __USE_TIME_BITS64
|
||||
# include <bits/struct_stat_time64_helper.h>
|
||||
#else
|
||||
__dev_t st_dev; /* Device. */
|
||||
# if __WORDSIZE == 64 || !defined __USE_FILE_OFFSET64
|
||||
unsigned short int __pad1;
|
||||
|
@ -76,11 +79,15 @@ struct stat
|
|||
# endif
|
||||
unsigned long int __glibc_reserved4;
|
||||
unsigned long int __glibc_reserved5;
|
||||
#endif /* __USE_TIME_BITS64 */
|
||||
};
|
||||
|
||||
#ifdef __USE_LARGEFILE64
|
||||
struct stat64
|
||||
{
|
||||
# ifdef __USE_TIME_BITS64
|
||||
# include <bits/struct_stat_time64_helper.h>
|
||||
# else
|
||||
__dev_t st_dev; /* Device. */
|
||||
# if __WORDSIZE == 64
|
||||
unsigned short int __pad1;
|
||||
|
@ -119,6 +126,7 @@ struct stat64
|
|||
# endif
|
||||
unsigned long int __glibc_reserved4;
|
||||
unsigned long int __glibc_reserved5;
|
||||
# endif /* __USE_TIME_BITS64 */
|
||||
};
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in a new issue