From d78302d1ec947665f9d880e25b3a7e79fb56fc0e Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Tue, 24 Jan 2017 04:50:35 +0100 Subject: compat: backport siphash & dst_cache from mainline --- src/compat/Kbuild.include | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 src/compat/Kbuild.include (limited to 'src/compat/Kbuild.include') diff --git a/src/compat/Kbuild.include b/src/compat/Kbuild.include new file mode 100644 index 0000000..905e268 --- /dev/null +++ b/src/compat/Kbuild.include @@ -0,0 +1,11 @@ +ccflags-y += -include $(src)/compat/compat.h + +ifeq ($(wildcard $(srctree)/include/linux/siphash.h),) +ccflags-y += -I$(src)/compat/siphash/include +wireguard-y += compat/siphash/siphash.o +endif + +ifeq ($(wildcard $(srctree)/include/net/dst_cache.h),) +ccflags-y += -I$(src)/compat/dst_cache/include +wireguard-y += compat/dst_cache/dst_cache.o +endif -- cgit v1.2.3-59-g8ed1b