diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2017-05-04 18:58:13 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2017-05-04 19:04:02 +0200 |
commit | 03406a936d8905be426dff025ab6077e81487b7f (patch) | |
tree | b91d76bda152a015b72162e40277594261c1b57f /src/compat/compat.h | |
parent | compat: use existing iptunnel_xmit function for stats (diff) | |
download | wireguard-monolithic-historical-03406a936d8905be426dff025ab6077e81487b7f.tar.xz wireguard-monolithic-historical-03406a936d8905be426dff025ab6077e81487b7f.zip |
compat: ssse3 support
Diffstat (limited to 'src/compat/compat.h')
-rw-r--r-- | src/compat/compat.h | 4 |
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 |