aboutsummaryrefslogtreecommitdiffstats
path: root/testing/uwsgi/futimes.patch
diff options
context:
space:
mode:
authorKaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>2012-11-15 12:28:02 +0000
committerKaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>2012-11-15 12:28:02 +0000
commit79a5c3118e395916ec60e32d56841118dd120997 (patch)
treeaba96eb7035a0422f5b67544392373ca204f5375 /testing/uwsgi/futimes.patch
parent8e40e50db1dea8da62e4a2280efabb5b35e07a98 (diff)
downloadaports-79a5c3118e395916ec60e32d56841118dd120997.tar.bz2
aports-79a5c3118e395916ec60e32d56841118dd120997.tar.xz
testing/uwsgi: package added
Diffstat (limited to 'testing/uwsgi/futimes.patch')
-rw-r--r--testing/uwsgi/futimes.patch22
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()");
+ }