From 0140db94c0f8a8ddec98080c62bd6c8823b3ff9a Mon Sep 17 00:00:00 2001 From: Emil Velikov Date: Wed, 27 Sep 2023 16:38:05 +0100 Subject: [PATCH] libkmod: add fallback MODULE_INIT_COMPRESSED_FILE define The symbol was somewhat recently introduced by the kernel and not all distributions may be have available. The number is part of the ABI, so we can add a local fallback define. Closes: https://github.com/kmod-project/kmod/issues/29 Signed-off-by: Emil Velikov Signed-off-by: Lucas De Marchi --- shared/missing.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/shared/missing.h b/shared/missing.h index 4c0d136e..26294441 100644 --- a/shared/missing.h +++ b/shared/missing.h @@ -15,6 +15,10 @@ # define MODULE_INIT_IGNORE_VERMAGIC 2 #endif +#ifndef MODULE_INIT_COMPRESSED_FILE +# define MODULE_INIT_COMPRESSED_FILE 4 +#endif + #ifndef __NR_finit_module # define __NR_finit_module -1 #endif -- 2.47.2