]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
hurd: Fix build after 52a5fe70a2
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Wed, 23 Jun 2021 17:14:48 +0000 (14:14 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Wed, 23 Jun 2021 17:14:48 +0000 (14:14 -0300)
Hurd does not support 64-bit time_t internally.

io/file_change_detection.c
sysdeps/posix/getaddrinfo.c

index fad0907223ece8e8a5ee83def8bac1604cd681d5..aad8edb0596f8136dcce0245c8bd261668a355bf 100644 (file)
@@ -56,8 +56,10 @@ __file_change_detection_for_stat (struct file_change_detection *file,
     {
       file->size = st->st_size;
       file->ino = st->st_ino;
-      file->mtime = st->st_mtim;
-      file->ctime = st->st_ctim;
+      file->mtime = (struct __timespec64) { st->st_mtim.tv_sec,
+                                           st->st_mtim.tv_nsec };
+      file->ctime = (struct __timespec64) { st->st_ctim.tv_sec,
+                                           st->st_ctim.tv_nsec };
     }
 }
 libc_hidden_def (__file_change_detection_for_stat)
index f7f19f1d7c276bf2d9a563ea4ac476de4433cc0c..838a68f0229b5aa8b95d85ca001c20aac9a0dd0c 100644 (file)
@@ -1641,7 +1641,8 @@ static struct __timespec64 gaiconf_mtime;
 static inline void
 save_gaiconf_mtime (const struct __stat64_t64 *st)
 {
-  gaiconf_mtime = st->st_mtim;
+  gaiconf_mtime = (struct __timespec64) { st->st_mtim.tv_sec,
+                                         st->st_mtim.tv_nsec };
 }
 
 static inline bool