aports/testing/uwsgi/futimes.patch
2012-11-15 12:28:02 +00:00

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()");
}