y2038: Add __USE_TIME_BITS64 support for struct utimbuf
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Wed, 17 Feb 2021 19:20:18 +0000 (16:20 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Tue, 15 Jun 2021 13:42:11 +0000 (10:42 -0300)
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>
io/utime.h

index df2299e..c7612d0 100644 (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