From: Adhemerval Zanella Date: Wed, 17 Feb 2021 19:20:18 +0000 (-0300) Subject: y2038: Add __USE_TIME_BITS64 support for struct utimbuf X-Git-Tag: glibc-2.34~289 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=75c526fa69ad7ee7cf3235eed68169b47247be6d;p=thirdparty%2Fglibc.git y2038: Add __USE_TIME_BITS64 support for struct utimbuf The __USE_TIME_BITS64 is not defined internally yet. Reviewed-by: Lukasz Majewski Reviewed-by: Carlos O'Donell Tested-by: Carlos O'Donell --- diff --git a/io/utime.h b/io/utime.h index df2299e406e..c7612d0838c 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