添加 patches/001-fix-build.patch

Signed-off-by: zhao <zj18139624826@gmail.com>
This commit is contained in:
2026-01-17 11:46:18 +08:00
parent 6ae029e601
commit 8432ffe918

View File

@@ -0,0 +1,16 @@
--- a/src/nft_ext_fullcone.c
+++ b/src/nft_ext_fullcone.c
@@ -121,7 +121,13 @@ static int exp_event_cb(unsigned int eve
}
#endif
+#if ((LINUX_VERSION_CODE >= KERNEL_VERSION(6, 6, 113)) && \
+ (LINUX_VERSION_CODE < KERNEL_VERSION(6, 7, 0))) || \
+ (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 12, 0))
+static int nft_fullcone_validate(const struct nft_ctx *ctx, const struct nft_expr *expr)
+#else
static int nft_fullcone_validate(const struct nft_ctx *ctx, const struct nft_expr *expr, const struct nft_data **data)
+#endif
{
int err;