diff options
author | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2021-02-17 16:20:18 -0300 |
---|---|---|
committer | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2021-06-15 10:42:11 -0300 |
commit | 75c526fa69ad7ee7cf3235eed68169b47247be6d (patch) | |
tree | 260d74b419f0e07c8e61e9c8f74e480d5c3c6794 /io | |
parent | c606975bd09e9dcbf9901b1b57ab848e26005e85 (diff) | |
download | glibc-75c526fa69ad7ee7cf3235eed68169b47247be6d.tar glibc-75c526fa69ad7ee7cf3235eed68169b47247be6d.tar.gz glibc-75c526fa69ad7ee7cf3235eed68169b47247be6d.tar.bz2 glibc-75c526fa69ad7ee7cf3235eed68169b47247be6d.zip |
y2038: Add __USE_TIME_BITS64 support for struct utimbuf
The __USE_TIME_BITS64 is not defined internally yet.
Reviewed-by: Lukasz Majewski <lukma@denx.de>
Reviewed-by: Carlos O'Donell <carlos@redhat.com>
Tested-by: Carlos O'Donell <carlos@redhat.com>
Diffstat (limited to 'io')
-rw-r--r-- | io/utime.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/io/utime.h b/io/utime.h index df2299e406..c7612d0838 100644 --- a/io/utime.h +++ b/io/utime.h @@ -35,8 +35,13 @@ __BEGIN_DECLS /* Structure describing file times. */ struct utimbuf { +#ifdef __USE_TIME_BITS64 + __time64_t actime; /* Access time. */ + __time64_t modtime; /* Modification time. */ +#else __time_t actime; /* Access time. */ __time_t modtime; /* Modification time. */ +#endif }; /* Set the access and modification times of FILE to those given in |