From a6e4ec487debf11785b3f82a8c821ae9b7356024 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Tue, 22 Jan 2019 13:38:52 +0100 Subject: netlink: use __kernel_timespec for handshake time Signed-off-by: Jason A. Donenfeld --- src/containers.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/containers.h') diff --git a/src/containers.h b/src/containers.h index 2144052..59a213e 100644 --- a/src/containers.h +++ b/src/containers.h @@ -15,6 +15,12 @@ #include "../uapi/wireguard.h" +/* Cross platform __kernel_timespec */ +struct timespec64 { + int64_t tv_sec; + int64_t tv_nsec; +}; + struct wgallowedip { uint16_t family; union { @@ -45,7 +51,7 @@ struct wgpeer { struct sockaddr_in6 addr6; } endpoint; - struct timespec last_handshake_time; + struct timespec64 last_handshake_time; uint64_t rx_bytes, tx_bytes; uint16_t persistent_keepalive_interval; -- cgit v1.2.3-59-g8ed1b