summaryrefslogtreecommitdiffstatshomepage
path: root/src/compat
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2017-03-27 16:35:11 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2017-03-27 16:35:11 +0200
commit2a487810f5f660f470ebd5a5188368792a47ab1c (patch)
treed92415b8e6d6fe8a36dec8417b053788f7a1ed9f /src/compat
parentversion: bump snapshot (diff)
downloadwireguard-monolithic-historical-2a487810f5f660f470ebd5a5188368792a47ab1c.tar.xz
wireguard-monolithic-historical-2a487810f5f660f470ebd5a5188368792a47ab1c.zip
compat: allow create-patch to work on debian-based builds
Diffstat (limited to 'src/compat')
-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 769477c..ceffb84 100644
--- a/src/compat/Kbuild.include
+++ b/src/compat/Kbuild.include
@@ -1,4 +1,8 @@
+ifeq ($(wildcard $(src)/compat/compat.h),)
+ccflags-y += -include $(srctree)/$(src)/compat/compat.h
+else
ccflags-y += -include $(src)/compat/compat.h
+endif
ifeq ($(wildcard $(srctree)/include/linux/siphash.h),)
ccflags-y += -I$(src)/compat/siphash/include