From b86539d1331ab13c46ce43e9a9e76d7d32c41881 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Wed, 4 Oct 2017 05:21:15 +0200 Subject: compat: support ptr_ring for old kernels --- src/compat/Kbuild.include | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/compat/Kbuild.include') diff --git a/src/compat/Kbuild.include b/src/compat/Kbuild.include index aacc9f6..bee91ed 100644 --- a/src/compat/Kbuild.include +++ b/src/compat/Kbuild.include @@ -4,6 +4,10 @@ else ccflags-y += -include $(src)/compat/compat.h endif +ifeq ($(wildcard $(srctree)/include/linux/ptr_ring.h),) +ccflags-y += -I$(src)/compat/ptr_ring/include +endif + ifeq ($(wildcard $(srctree)/include/linux/siphash.h),) ccflags-y += -I$(src)/compat/siphash/include wireguard-y += compat/siphash/siphash.o -- cgit v1.2.3-59-g8ed1b