uClibc compatibility for core

This commit is contained in:
Kaarle Ritvanen
2012-11-23 08:45:24 +02:00
parent 7add254781
commit c2d2f13bfb
2 changed files with 7 additions and 5 deletions
+5 -5
View File
@@ -227,17 +227,17 @@ int spool_request(struct uwsgi_spooler *uspool, char *filename, int rn, int core
}
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()");
uwsgi_error("futimens()");
}
}
+2
View File
@@ -1,3 +1,5 @@
#include <sched.h>
#include "uwsgi.h"