diff options
author | Darren Tucker <dtucker@zip.com.au> | 2015-12-15 13:59:12 +1100 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2015-12-15 13:59:12 +1100 |
commit | c6f5f01651526e88c00d988ce59d71f481ebac62 (patch) | |
tree | 60638166b6c218aa1a696a72664206f3c5537575 /loginrec.c | |
parent | 39736be06c7498ef57d6970f2d85cf066ae57c82 (diff) |
Add sys/time.h for gettimeofday.
Should allow it it compile with MUSL libc. Based on patch from
doughdemon via github.
Diffstat (limited to 'loginrec.c')
-rw-r--r-- | loginrec.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/loginrec.c b/loginrec.c index 94ae81dc6..788553e92 100644 --- a/loginrec.c +++ b/loginrec.c | |||
@@ -150,6 +150,9 @@ | |||
150 | #include <sys/types.h> | 150 | #include <sys/types.h> |
151 | #include <sys/stat.h> | 151 | #include <sys/stat.h> |
152 | #include <sys/socket.h> | 152 | #include <sys/socket.h> |
153 | #ifdef HAVE_SYS_TIME_H | ||
154 | # include <sys/time.h> | ||
155 | #endif | ||
153 | 156 | ||
154 | #include <netinet/in.h> | 157 | #include <netinet/in.h> |
155 | 158 | ||