From c6f5f01651526e88c00d988ce59d71f481ebac62 Mon Sep 17 00:00:00 2001 From: Darren Tucker Date: Tue, 15 Dec 2015 13:59:12 +1100 Subject: Add sys/time.h for gettimeofday. Should allow it it compile with MUSL libc. Based on patch from doughdemon via github. --- loginrec.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'loginrec.c') diff --git a/loginrec.c b/loginrec.c index 94ae81dc6..788553e92 100644 --- a/loginrec.c +++ b/loginrec.c @@ -150,6 +150,9 @@ #include #include #include +#ifdef HAVE_SYS_TIME_H +# include +#endif #include -- cgit v1.2.3