]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
Add sys/time.h for gettimeofday.
authorDarren Tucker <dtucker@zip.com.au>
Tue, 15 Dec 2015 02:59:12 +0000 (13:59 +1100)
committerDarren Tucker <dtucker@zip.com.au>
Tue, 15 Dec 2015 02:59:12 +0000 (13:59 +1100)
Should allow it it compile with MUSL libc.  Based on patch from
doughdemon via github.

loginrec.c

index 94ae81dc60886fe46a92164339f8a8f989b961f9..788553e9204db0c3ca5be1c38274a51f06c1bd3f 100644 (file)
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <sys/socket.h>
+#ifdef HAVE_SYS_TIME_H
+# include <sys/time.h>
+#endif
 
 #include <netinet/in.h>