diff --git a/core/spooler.c b/core/spooler.c index 0693caee..45cfeb02 100644 --- a/core/spooler.c +++ b/core/spooler.c @@ -227,17 +227,17 @@ int spool_request(struct uwsgi_spooler *uspool, char *filename, int rn, int core } if (at > 0) { - struct timespec tv[2]; + struct timeval tv[2]; tv[0].tv_sec = at; - tv[0].tv_nsec = 0; + tv[0].tv_usec = 0; tv[1].tv_sec = at; - tv[1].tv_nsec = 0; + tv[1].tv_usec = 0; #ifdef __sun__ if (futimesat(fd, NULL, tv)) { #else - if (futimens(fd, tv)) { + if (futimes(fd, tv)) { #endif - uwsgi_error("futimens()"); + uwsgi_error("futimes()"); } } diff --git a/core/utils.c b/core/utils.c index d52aa6e1..e04e5688 100644 --- a/core/utils.c +++ b/core/utils.c @@ -1,5 +1,3 @@ -#include - #include "uwsgi.h"