Merge pull request #59 from kunkku/uclibc

uClibc compatibility for core
This commit is contained in:
unbit
2012-11-23 00:26:00 -08:00
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"