添加 patches/001-fix-build.patch
Signed-off-by: zhao <zj18139624826@gmail.com>
This commit is contained in:
16
patches/001-fix-build.patch
Normal file
16
patches/001-fix-build.patch
Normal 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;
|
||||
|
||||
Reference in New Issue
Block a user