Build fix: arm64: incomplete landlock_rule_type type
[lttng-modules.git] / src / lttng-syscalls.h
index ce63973f8f6e430f8c09ca6a1d37ddd3eda3e7f6..a6bc30fb79e01598fe362e54fc57b497a21d0aca 100644 (file)
 #include <lttng/events.h>
 #include <lttng/kernel-version.h>
 
+#if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(5,13,0))
+#include <linux/landlock.h>
+#else
+struct landlock_ruleset_attr;
+
+enum landlock_rule_type {
+       LANDLOCK_RULE_PATH_BENEATH = 1,
+};
+#endif
+
 /*
  * Forward declarations allowing LTTng to build its system call instrumentation
  * against old kernels which do not declare the more recent system call
This page took 0.023621 seconds and 4 git commands to generate.