timers: local_clock() is defined in linux/sched.h in kernel below v4.11
PATCH 1/1 timers: local_clock() is defined in linux/sched.h in kernel below v4.11
Fixes 7a79457255d5 ("global: switch to local_clock()")
Signed-off-by René van Dorst <[email protected]>
--- src/timers.h | 4 ++++ 1 file changed, 4 insertions(+)
src/timers.h +4 -0
@@ -6,7 +6,11 @@#ifndef _WG_TIMERS_H#define _WG_TIMERS_H +#if LINUX_VERSION_CODE <KERNEL_VERSION (4 ,11 ,0 ) +#include <linux/sched.h> +#else #include <linux/sched/clock.h> +#endif struct wg_peer ;
Signature · 6 lines
2.20.1 _______________________________________________ WireGuard mailing list [email protected] https://lists.zx2c4.com/mailman/listinfo/wireguard
Hey Rene,
Thanks for this. I may merge this today, but I might revert the local_clock commit all together and replace it with something different, based on some in-progress discussions on LKML. I'll let you know.
Jason
_______________________________________________
WireGuard mailing list
[email protected]
https://lists.zx2c4.com/mailman/listinfo/wireguard