about summary refs log tree commit diff
path: root/io
diff options
context:
space:
mode:
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>2021-06-23 14:14:48 -0300
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2021-06-23 14:14:48 -0300
commit30adcf5adb40293654f77ebd443468a6f6fffc2a (patch)
treed2dff524f1883cea876a70e64f8560c29ed03426 /io
parentbf6749a7f87c54e62db26b24c63b27004a110847 (diff)
downloadglibc-30adcf5adb40293654f77ebd443468a6f6fffc2a.tar.gz
glibc-30adcf5adb40293654f77ebd443468a6f6fffc2a.tar.xz
glibc-30adcf5adb40293654f77ebd443468a6f6fffc2a.zip
hurd: Fix build after 52a5fe70a2
Hurd does not support 64-bit time_t internally.
Diffstat (limited to 'io')
-rw-r--r--io/file_change_detection.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/io/file_change_detection.c b/io/file_change_detection.c
index fad0907223..aad8edb059 100644
--- a/io/file_change_detection.c
+++ b/io/file_change_detection.c
@@ -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)