aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEmil Velikov <emil.l.velikov@gmail.com>2023-09-27 16:38:05 +0100
committerLucas De Marchi <lucas.de.marchi@gmail.com>2023-09-27 22:37:45 -0500
commit0140db94c0f8a8ddec98080c62bd6c8823b3ff9a (patch)
tree7fae6062f06e01951063e0747af7fd6cb6e8ae30
parent09c9f8c5df0475d2627d9498e26250592dbfebd6 (diff)
downloadkmod-0140db94c0f8a8ddec98080c62bd6c8823b3ff9a.tar.gz
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 <emil.l.velikov@gmail.com> Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
-rw-r--r--shared/missing.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/shared/missing.h b/shared/missing.h
index 4c0d136..2629444 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