From: "René van Dorst" <opensource@vdorst.com>
To: Jason@zx2c4.com
Cc: wireguard@lists.zx2c4.com
Subject: [PATCH] timers: local_clock() is defined in linux/sched.h in kernel below v4.11
Date: Thu, 13 Jun 2019 11:40:16 +0200 [thread overview]
Message-ID: <20190613094016.11992-1-opensource@vdorst.com> (raw)
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
next reply other threads:[~2019-06-13 9:41 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-06-13 9:40 René van Dorst [this message]
2019-06-13 9:42 ` Jason A. Donenfeld
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190613094016.11992-1-opensource@vdorst.com \
--to=opensource@vdorst.com \
--cc=Jason@zx2c4.com \
--cc=wireguard@lists.zx2c4.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).