From e5a50a0b79e0338f6eb9d539f03a211c5406ddb6 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Wed, 17 Jan 2018 21:37:11 -0800 Subject: [PATCH] ircd: Use address of ::gettimeofday to resolve error in g++-7. --- include/ircd/date.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/ircd/date.h b/include/ircd/date.h index ac5309484..5b2994cb9 100644 --- a/include/ircd/date.h +++ b/include/ircd/date.h @@ -202,6 +202,6 @@ inline ircd::microtime_t ircd::microtime() { struct timeval tv; - syscall(::gettimeofday, &tv, nullptr); + syscall(&::gettimeofday, &tv, nullptr); return { tv.tv_sec, tv.tv_usec }; }