musl 1.2.0 turns time_t into a 64-bit value, even on 32-bit. This makes it
compatible.
Signed-off-by: Rosen Penev <rosenp@gmail.com>
#include <libubox/uloop.h>
#include <libubox/runqueue.h>
+#include <inttypes.h>
#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
ts_res.tv_nsec += 1000000000;
}
- DEBUG(2, "stop %s %s - took %lu.%09lus\n", s->file, s->param, ts_res.tv_sec, ts_res.tv_nsec);
+ DEBUG(2, "stop %s %s - took %" PRId64 ".%09" PRId64 "s\n", s->file, s->param, (int64_t)ts_res.tv_sec, (int64_t)ts_res.tv_nsec);
ustream_free(&s->fd.stream);
close(s->fd.fd.fd);
free(s);