public inbox for glibc-cvs@sourceware.org help / color / mirror / Atom feed
From: Adhemerval Zanella <azanella@sourceware.org> To: glibc-cvs@sourceware.org Subject: [glibc] hurd: Fix build after 52a5fe70a2 Date: Wed, 23 Jun 2021 17:17:44 +0000 (GMT) [thread overview] Message-ID: <20210623171744.B0B513857831@sourceware.org> (raw) https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=30adcf5adb40293654f77ebd443468a6f6fffc2a commit 30adcf5adb40293654f77ebd443468a6f6fffc2a Author: Adhemerval Zanella <adhemerval.zanella@linaro.org> Date: Wed Jun 23 14:14:48 2021 -0300 hurd: Fix build after 52a5fe70a2 Hurd does not support 64-bit time_t internally. Diff: --- io/file_change_detection.c | 6 ++++-- sysdeps/posix/getaddrinfo.c | 3 ++- 2 files changed, 6 insertions(+), 3 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) diff --git a/sysdeps/posix/getaddrinfo.c b/sysdeps/posix/getaddrinfo.c index f7f19f1d7c..838a68f022 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
reply other threads:[~2021-06-23 17:17 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20210623171744.B0B513857831@sourceware.org \ --to=azanella@sourceware.org \ --cc=glibc-cvs@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).