summaryrefslogtreecommitdiff
path: root/util/ub_event.c
diff options
context:
space:
mode:
Diffstat (limited to 'util/ub_event.c')
-rw-r--r--util/ub_event.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/util/ub_event.c b/util/ub_event.c
index e097fbc40158..9af476ad4084 100644
--- a/util/ub_event.c
+++ b/util/ub_event.c
@@ -458,7 +458,9 @@ void ub_comm_base_now(struct comm_base* cb)
if(gettimeofday(tv, NULL) < 0) {
log_err("gettimeofday: %s", strerror(errno));
}
+#ifndef S_SPLINT_S
*tt = tv->tv_sec;
+#endif
#endif /* USE_MINI_EVENT */
}