mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-15 05:32:26 +01:00
23 lines
445 B
Diff
23 lines
445 B
Diff
--- uwsgi-1.3/core/spooler.c
|
|
+++ uwsgi-1.3.alpine/core/spooler.c
|
|
@@ -223,15 +223,15 @@
|
|
}
|
|
|
|
if (at > 0) {
|
|
- struct timeval tv[2];
|
|
+ struct timespec tv[2];
|
|
tv[0].tv_sec = at;
|
|
- tv[0].tv_usec = 0;
|
|
+ tv[0].tv_nsec = 0;
|
|
tv[1].tv_sec = at;
|
|
- tv[1].tv_usec = 0;
|
|
+ tv[1].tv_nsec = 0;
|
|
#ifdef __sun__
|
|
if (futimesat(fd, NULL, tv)) {
|
|
#else
|
|
- if (futimes(fd, tv)) {
|
|
+ if (futimens(fd, tv)) {
|
|
#endif
|
|
uwsgi_error("futimes()");
|
|
}
|