From 42bc9b33922816b67dd926a836fc0b83269a24d2 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Mon, 8 May 2017 21:44:18 +0200 Subject: compat: use real crypto_memneq --- src/compat/Kbuild.include | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/compat/Kbuild.include') diff --git a/src/compat/Kbuild.include b/src/compat/Kbuild.include index aaaffcb..aacc9f6 100644 --- a/src/compat/Kbuild.include +++ b/src/compat/Kbuild.include @@ -26,3 +26,8 @@ ifeq ($(wildcard $(srctree)/include/net/udp_tunnel.h),) ccflags-y += -I$(src)/compat/udp_tunnel/include wireguard-y += compat/udp_tunnel/udp_tunnel.o endif + +ifeq ($(shell grep -F "int crypto_memneq" "$(srctree)/include/crypto/algapi.h"),) +ccflags-y += -include $(src)/compat/memneq/include.h +wireguard-y += compat/memneq/memneq.o +endif -- cgit v1.2.3-59-g8ed1b