mirror of
https://github.com/clearlinux/uwsgi.git
synced 2026-08-24 06:58:02 +00:00
uClibc compatibility for core
This commit is contained in:
+5
-5
@@ -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()");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
#include <sched.h>
|
||||
|
||||
#include "uwsgi.h"
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user