diff --git a/qssb.h b/qssb.h index c31825d..da220a2 100644 --- a/qssb.h +++ b/qssb.h @@ -36,14 +36,20 @@ #include #include #include +#include #include #include #include #include -#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,13,0) +#ifndef HAVE_LANDLOCK + #if LINUX_VERSION_CODE >= KERNEL_VERSION(5,13,0) + /* TODO: Hopefully a fair assumption. But we need to runtime checks */ + #define HAVE_LANDLOCK = 1 + #endif +#endif +#if HAVE_LANDLOCK == 1 #include - #define HAVE_LANDLOCK 1 #endif //TODO: stolen from kernel samples/seccomp, GPLv2...?