summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2017-11-22 20:21:48 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2017-11-22 20:21:48 +0100
commitbca546c22a083b50aa24bfa3a78ac17e88d9292a (patch)
tree2e3bbae6cd1e3bf2ddbcfb4111fc358e14932fdc
parentversion: bump snapshot (diff)
downloadwireguard-monolithic-historical-bca546c22a083b50aa24bfa3a78ac17e88d9292a.tar.xz
wireguard-monolithic-historical-bca546c22a083b50aa24bfa3a78ac17e88d9292a.zip
compat: support timespec64 on old kernels
-rw-r--r--src/compat/compat.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/compat/compat.h b/src/compat/compat.h
index 68590fa..4609417 100644
--- a/src/compat/compat.h
+++ b/src/compat/compat.h
@@ -523,6 +523,11 @@ struct _____dummy_container { char dev; };
#define COMPAT_CANNOT_USE_AVX512
#endif
+#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 17, 0)
+#define timespec64 timespec
+#define getnstimeofday64 getnstimeofday
+#endif
+
/* https://lkml.org/lkml/2017/6/23/790 */
#if IS_ENABLED(CONFIG_NF_CONNTRACK)
#include <linux/ip.h>