X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=lttng-syscalls.c;h=a43c475e7b7f1f744018fd77f6ea179177ac7290;hb=b7cdc18250880cc44edeef4a4b42c8ac7a135a6d;hp=7a2d02a9ef1ff6c8d4e41ea39c62918c3c2a77e7;hpb=2d9cd7f33b37382e41eab3cfb509b24af3462887;p=lttng-modules.git diff --git a/lttng-syscalls.c b/lttng-syscalls.c index 7a2d02a9..a43c475e 100644 --- a/lttng-syscalls.c +++ b/lttng-syscalls.c @@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: (GPL-2.0 or LGPL-2.1) +/* SPDX-License-Identifier: (GPL-2.0-only or LGPL-2.1-only) * * lttng-syscalls.c * @@ -18,6 +18,7 @@ #include #include #include +#include #include #include @@ -73,6 +74,18 @@ struct mmap_arg_struct; struct file_handle; struct user_msghdr; +/* + * Forward declaration for kernels >= 5.6 + */ +struct timex; +struct timeval; +struct itimerval; +struct itimerspec; + +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5,6,0)) +typedef __kernel_old_time_t time_t; +#endif + #ifdef IA32_NR_syscalls #define NR_compat_syscalls IA32_NR_syscalls #else