Fixes compilation under musl 1.2.0
Signed-off-by: Rosen Penev <rosenp@gmail.com>
#include <resolv.h>
#include <glob.h>
+#include <inttypes.h>
#include <stdio.h>
#include <time.h>
time_t t = monotonic_time();
if (t - s->t <= TOUT_LOOKUP) {
- DBG(2, "t=%lu, s->t=%lu, t - s->t = %lu\n", t, s->t, t - s->t);
+ DBG(2, "t=%" PRId64 ", s->t=%" PRId64 ", t - s->t = %" PRId64 "\n", (int64_t)t, (int64_t)s->t, (int64_t)(t - s->t));
return 0;
}