aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2013-05-26 18:22:12 -0400
committerRich Felker <dalias@aerifal.cx>2013-05-26 18:22:12 -0400
commitd9265653552a2b667bf3e84407a06edaa7e9f74f (patch)
tree2781a8b5385ee8224b4cda826ac159c3b769b995 /src
parentchange underlying type of clock_t to be uniform and match ABI (diff)
parentfix the prototype of settimeofday to follow the original BSD declaration (diff)
downloadgrovel-d9265653552a2b667bf3e84407a06edaa7e9f74f.tar.gz
grovel-d9265653552a2b667bf3e84407a06edaa7e9f74f.tar.xz
Merge remote-tracking branch 'nsz/review'
Diffstat (limited to 'src')
-rw-r--r--src/linux/settimeofday.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/linux/settimeofday.c b/src/linux/settimeofday.c
index d741f66b..15c18c63 100644
--- a/src/linux/settimeofday.c
+++ b/src/linux/settimeofday.c
@@ -1,7 +1,8 @@
+#define _BSD_SOURCE
#include <sys/time.h>
#include "syscall.h"
-int settimeofday(const struct timeval *tv, void *tz)
+int settimeofday(const struct timeval *tv, const struct timezone *tz)
{
return syscall(SYS_settimeofday, tv, 0);
}