diff options
Diffstat (limited to 'testing/uwsgi/futimes.patch')
-rw-r--r-- | testing/uwsgi/futimes.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/testing/uwsgi/futimes.patch b/testing/uwsgi/futimes.patch new file mode 100644 index 0000000000..79b525fa06 --- /dev/null +++ b/testing/uwsgi/futimes.patch @@ -0,0 +1,22 @@ +--- 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()"); + } |