about summary refs log tree commit diff
path: root/sysdeps/unix/sysv/linux/alpha/tv32-compat.h
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/unix/sysv/linux/alpha/tv32-compat.h')
-rw-r--r--sysdeps/unix/sysv/linux/alpha/tv32-compat.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/sysdeps/unix/sysv/linux/alpha/tv32-compat.h b/sysdeps/unix/sysv/linux/alpha/tv32-compat.h
index d0b4cdcef3..5f86e66e08 100644
--- a/sysdeps/unix/sysv/linux/alpha/tv32-compat.h
+++ b/sysdeps/unix/sysv/linux/alpha/tv32-compat.h
@@ -83,6 +83,12 @@ valid_timeval64_to_timeval (const struct timeval tv64)
   return (struct timeval32) { tv64.tv_sec, tv64.tv_usec };
 }
 
+static inline struct timespec
+valid_timeval32_to_timespec (const struct timeval32 tv)
+{
+  return (struct timespec) { tv.tv_sec, tv.tv_usec * 1000 };
+}
+
 static inline void
 rusage64_to_rusage32 (struct rusage32 *restrict r32,
                       const struct rusage *restrict r64)