wireguard.lists.zx2c4.com archive mirror
 help / color / mirror / Atom feed
* [PATCH] timers: local_clock() is defined in linux/sched.h in kernel below v4.11
@ 2019-06-13  9:40 René van Dorst
  2019-06-13  9:42 ` Jason A. Donenfeld
  0 siblings, 1 reply; 2+ messages in thread
From: René van Dorst @ 2019-06-13  9:40 UTC (permalink / raw)
  To: Jason; +Cc: wireguard

Fixes: 7a79457255d5  ("global: switch to local_clock()")
Signed-off-by: René van Dorst <opensource@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

_______________________________________________
WireGuard mailing list
WireGuard@lists.zx2c4.com
https://lists.zx2c4.com/mailman/listinfo/wireguard

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-06-13  9:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-06-13  9:40 [PATCH] timers: local_clock() is defined in linux/sched.h in kernel below v4.11 René van Dorst
2019-06-13  9:42 ` Jason A. Donenfeld

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).