diff options
author | Ben Hutchings <ben@decadent.org.uk> | 2023-01-04 01:34:39 +0100 |
---|---|---|
committer | Ben Hutchings <ben@decadent.org.uk> | 2023-01-04 01:34:39 +0100 |
commit | 12f259dda1ef59b5f1f2fb67631dcbf94c18c56c (patch) | |
tree | cc096927f557f6527ac7d090d2c80717a2934107 | |
parent | 3d63cd68496a1c8aeccbdac6488bc1f002700bc8 (diff) | |
download | klibc-12f259dda1ef59b5f1f2fb67631dcbf94c18c56c.tar.gz |
[klibc] mips64: Fix struct stat layoutklibc-2.0.12
On mips64, struct stat has 32-bit time fields instead of following
struct timespec.
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
-rw-r--r-- | usr/include/arch/mips64/klibc/archstat.h | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/usr/include/arch/mips64/klibc/archstat.h b/usr/include/arch/mips64/klibc/archstat.h index 2dbb907c7d1f4..16f50c9edaa08 100644 --- a/usr/include/arch/mips64/klibc/archstat.h +++ b/usr/include/arch/mips64/klibc/archstat.h @@ -3,8 +3,6 @@ #include <sys/types.h> -#define _STATBUF_ST_NSEC - struct stat { unsigned int st_dev; unsigned int st_pad0[3]; /* Reserved for st_dev expansion */ @@ -22,9 +20,14 @@ struct stat { off_t st_size; - struct timespec st_atim; - struct timespec st_mtim; - struct timespec st_ctim; + unsigned int st_atime; + unsigned int st_atimensec; + + unsigned int st_mtime; + unsigned int st_mtimensec; + + unsigned int st_ctime; + unsigned int st_ctimensec; unsigned int st_blksize; unsigned int st_pad2; |