From: Darren Tucker Date: Tue, 15 Dec 2015 02:59:12 +0000 (+1100) Subject: Add sys/time.h for gettimeofday. X-Git-Tag: V_7_2_P1~73 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c6f5f01651526e88c00d988ce59d71f481ebac62;p=thirdparty%2Fopenssh-portable.git Add sys/time.h for gettimeofday. Should allow it it compile with MUSL libc. Based on patch from doughdemon via github. --- 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