about summary refs log tree commit diff
path: root/sysdeps/posix
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 /sysdeps/posix
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 'sysdeps/posix')
-rw-r--r--sysdeps/posix/getaddrinfo.c3
1 files changed, 2 insertions, 1 deletions
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