1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-02-13 02:51:50 +00:00
openmptcprouter-feeds/xtables-addons/patches/302-fix-build-with-linux-6.12.patch
Ycarus (Yannick Chabanois) 53de5ab422 Fix for Kernel 6.12
2024-10-09 11:15:40 +02:00

14 lines
412 B
Diff

--- a/extensions/xt_ipp2p.c 2024-10-08 14:14:40.759989875 +0200
+++ b/extensions/xt_ipp2p.c 2024-10-08 14:16:04.042851316 +0200
@@ -6,7 +6,11 @@
#include <linux/netfilter_ipv4/ip_tables.h>
#include <net/tcp.h>
#include <net/udp.h>
+#if LINUX_VERSION_CODE < KERNEL_VERSION(6, 11, 0)
#include <asm/unaligned.h>
+#else
+#include <linux/unaligned.h>
+#endif
#include "xt_ipp2p.h"
#include "compat_xtables.h"