about summary refs log tree commit diff
path: root/sysdeps/unix/sysv/linux/sleep.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/unix/sysv/linux/sleep.c')
-rw-r--r--sysdeps/unix/sysv/linux/sleep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/unix/sysv/linux/sleep.c b/sysdeps/unix/sysv/linux/sleep.c
index b73032263b..0cf6be285d 100644
--- a/sysdeps/unix/sysv/linux/sleep.c
+++ b/sysdeps/unix/sysv/linux/sleep.c
@@ -29,7 +29,7 @@
 unsigned int
 __sleep (unsigned int seconds)
 {
-  struct timespec ts = { tv_sec: (long int) seconds, tv_nsec: 0 };
+  struct timespec ts = { .tv_sec = (long int) seconds, .tv_nsec = 0 };
   sigset_t set, oset;
   unsigned int result;