fail posix_spawn file_actions operations with negative fds
[musl] / src / linux / stime.c
index ec3ba82..7d0443b 100644 (file)
@@ -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);