diff --git a/Makefile b/Makefile index b161997..488f6c3 100644 --- a/Makefile +++ b/Makefile @@ -49,6 +49,7 @@ $(WIREGUARD_DIR)/src/Makefile: $(WIREGUARD_TAR) tar -xf $(WIREGUARD_TAR) patch $(WIREGUARD_DIR)/src/netlink.c $(ROOT_DIR)/patch/netlink.patch patch $(WIREGUARD_DIR)/src/peerlookup.c $(ROOT_DIR)/patch/peerlookup.patch + patch $(WIREGUARD_DIR)/src/compat/compat.h $(ROOT_DIR)/patch/wireguard-linux-compat.patch patch $(WIREGUARD_DIR)/src/compat/siphash/siphash.c $(ROOT_DIR)/patch/siphash.patch ifeq ($(APPLY_MEMNEQ_PATCH), 1) patch $(WIREGUARD_DIR)/src/compat/Kbuild.include $(ROOT_DIR)/patch/memneq.patch diff --git a/patch/wireguard-linux-compat.patch b/patch/wireguard-linux-compat.patch new file mode 100644 index 0000000..d0d9ba4 --- /dev/null +++ b/patch/wireguard-linux-compat.patch @@ -0,0 +1,13 @@ +--- src/compat/compat.h 2022-06-27 12:54:37.000000000 +0200 ++++ src/compat/compat.h 2024-03-31 01:44:27.000000000 +0100 +@@ -37,10 +37,6 @@ + #error "WireGuard requires Linux >= 3.10" + #endif + +-#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 6, 0) +-#error "WireGuard has been merged into Linux >= 5.6 and therefore this compatibility module is no longer required." +-#endif +- + #if defined(ISRHEL7) + #include + #define headers_end headers_start