From bfa949bf033f588fdd6f80ad8b50220ea153446e Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Mon, 26 Mar 2012 11:09:30 -0400 Subject: [PATCH] Fix: is_compat_task !CONFIG_COMPAT compile error on kernels >= 3.3 The Linux kernel already defines a is_compat_task() (0) when !CONFIG_COMPAT since kernel 3.3, so if we see it is already defined, don't redefine it. Closes #195 Reported-by: David Goulet Signed-off-by: Mathieu Desnoyers --- lttng-syscalls.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/lttng-syscalls.c b/lttng-syscalls.c index ebf32f8e..37feffbe 100644 --- a/lttng-syscalls.c +++ b/lttng-syscalls.c @@ -29,10 +29,9 @@ #include "lttng-events.h" #ifndef CONFIG_COMPAT -static inline int is_compat_task(void) -{ - return 0; -} +# ifndef is_compat_task +# define is_compat_task() (0) +# endif #endif static -- 2.34.1