Add the `linux/compat.h` include to fix the following error while
building the modules against a 3.8 kernel for x86-64 kernel:
error: ‘F_GETLK64’ undeclared here (not in a function)
ctf_enum_value("F_GETLK64", F_GETLK64)
Also, move the #include directives from the instrumentation headers to
the `lttng-syscalls.h` file.
Signed-off-by: Francis Deslauriers <francis.deslauriers@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Change-Id: I334a14d0b40ec77e0ca0aa3b762197de2050a1ae
/* SPDX-License-Identifier: (GPL-2.0-only or LGPL-2.1-only) */
-#include <linux/fcntl.h>
-#include <linux/mman.h>
-
#ifndef CREATE_SYSCALL_TABLE
/*
/* SPDX-License-Identifier: (GPL-2.0-only or LGPL-2.1-only) */
-#include <linux/in.h>
-#include <linux/in6.h>
-
#ifdef CONFIG_X86_64
#include "x86-64-syscalls_pointers.h"
#endif
#include <lttng/events.h>
+#include "lttng-syscalls.h"
+
#define LTTNG_PACKAGE_BUILD
#define CREATE_TRACE_POINTS
#define TP_MODULE_NOINIT
#include <stddef.h>
#include <asm/ptrace.h>
+#include <linux/compat.h>
+#include <linux/fcntl.h>
+#include <linux/in.h>
+#include <linux/in6.h>
+#include <linux/mman.h>
#include <lttng/events.h>
#include <lttng/kernel-version.h>