summaryrefslogtreecommitdiffstats
path: root/testing/uwsgi/futimes.patch
blob: 79b525fa0632c2167623327b3e26e5a7027c1a25 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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()");
 		}