summaryrefslogtreecommitdiffhomepage
path: root/src/compat/compat.h
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
commit89d400ab5fedbe30982bfb278158a5cf1abbf239 (patch)
tree73f2f9329e645e8904de4544ecdce86c51f85e6e /src/compat/compat.h
parent770d95812027f53053aff9e4f151d8765e79b9e9 (diff)
compat: ssse3 support
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'src/compat/compat.h')
-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