projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fix out-of-bound read processing time zone data with distant-past dates
[musl]
/
src
/
linux
/
stime.c
diff --git
a/src/linux/stime.c
b/src/linux/stime.c
index
ec3ba82
..
7d0443b
100644
(file)
--- a/
src/linux/stime.c
+++ b/
src/linux/stime.c
@@
-1,6
+1,8
@@
+#define _GNU_SOURCE
+#include <time.h>
#include <sys/time.h>
-int stime(time_t *t)
+int stime(
const
time_t *t)
{
struct timeval tv = { .tv_sec = *t, .tv_usec = 0 };
return settimeofday(&tv, (void *)0);