From: Adhemerval Zanella Date: Wed, 23 Jun 2021 17:14:48 +0000 (-0300) Subject: hurd: Fix build after 52a5fe70a2 X-Git-Tag: glibc-2.34~232 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=30adcf5adb40293654f77ebd443468a6f6fffc2a;p=thirdparty%2Fglibc.git hurd: Fix build after 52a5fe70a2 Hurd does not support 64-bit time_t internally. --- diff --git a/io/file_change_detection.c b/io/file_change_detection.c index fad0907223e..aad8edb0596 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) diff --git a/sysdeps/posix/getaddrinfo.c b/sysdeps/posix/getaddrinfo.c index f7f19f1d7c2..838a68f0229 100644 --- a/sysdeps/posix/getaddrinfo.c +++ b/sysdeps/posix/getaddrinfo.c @@ -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