aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/compat/Kbuild.include
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2017-10-04 05:21:15 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2017-10-05 15:27:29 +0200
commitb86539d1331ab13c46ce43e9a9e76d7d32c41881 (patch)
treea5d9c73086b5de4061ea2d854bddfd2176b2cecf /src/compat/Kbuild.include
parentqueueing: use ptr_ring instead of linked lists (diff)
downloadwireguard-monolithic-historical-b86539d1331ab13c46ce43e9a9e76d7d32c41881.tar.xz
wireguard-monolithic-historical-b86539d1331ab13c46ce43e9a9e76d7d32c41881.zip
compat: support ptr_ring for old kernels
Diffstat (limited to '')
-rw-r--r--src/compat/Kbuild.include4
1 files changed, 4 insertions, 0 deletions
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