summaryrefslogtreecommitdiffstatshomepage
path: root/src/compat
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2017-05-04 18:58:13 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2017-05-04 19:04:02 +0200
commit03406a936d8905be426dff025ab6077e81487b7f (patch)
treeb91d76bda152a015b72162e40277594261c1b57f /src/compat
parentcompat: use existing iptunnel_xmit function for stats (diff)
downloadwireguard-monolithic-historical-03406a936d8905be426dff025ab6077e81487b7f.tar.xz
wireguard-monolithic-historical-03406a936d8905be426dff025ab6077e81487b7f.zip
compat: ssse3 support
Diffstat (limited to 'src/compat')
-rw-r--r--src/compat/compat.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/compat/compat.h b/src/compat/compat.h
index 2db31ef..ffc5ce1 100644
--- a/src/compat/compat.h
+++ b/src/compat/compat.h
@@ -22,6 +22,10 @@
#error "WireGuard requires CONFIG_IP6_NF_IPTABLES when using CONFIG_IPV6."
#endif
+#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 0, 0) && defined(CONFIG_X86_64)
+#define CONFIG_AS_SSSE3
+#endif
+
#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 18, 0)
#define headers_start data
#define headers_end data