[PATCH] timers: local_clock() is defined in linux/sched.h in kernel below v4.11
René van Dorst
opensource at vdorst.com
Thu Jun 13 11:40:16 CEST 2019
Fixes: 7a79457255d5 ("global: switch to local_clock()")
Signed-off-by: René van Dorst <opensource at vdorst.com>
---
src/timers.h | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/timers.h b/src/timers.h
index ef1205690915..3af326056f3d 100644
--- a/src/timers.h
+++ b/src/timers.h
@@ -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;
--
2.20.1
More information about the WireGuard
mailing list