]> git.ipfire.org Git - thirdparty/glibc.git/blobdiff - io/tst-utimes.c
y2038: Add test coverage
[thirdparty/glibc.git] / io / tst-utimes.c
index 991ab0c7d3fb4fd175040b1ddb101ed74a91cebd..e88efff45b528ff414347ae34390d9bf4ab20ac1 100644 (file)
 #include <sys/time.h>
 #include <time.h>
 
+#ifndef struct_stat
+# define struct_stat struct stat64
+#endif
+
 static int
 test_utimes_helper (const char *file, int fd, const struct timeval *tv)
 {
   int result = utimes (file, tv);
   TEST_VERIFY_EXIT (result == 0);
 
-  struct stat64 st;
+  struct_stat st;
   xfstat (fd, &st);
 
   /* Check if seconds for atime match */