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>
This commit is contained in:
Adhemerval Zanella 2021-02-17 16:20:18 -03:00
parent c606975bd0
commit 75c526fa69

View File

@ -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