From: Michael Jeanson Date: Tue, 8 Jun 2021 14:55:19 +0000 (-0400) Subject: Build fix: build without lttng-ust X-Git-Url: http://git.efficios.com/?p=lttng-tools.git;a=commitdiff_plain;h=9aa8c9b2cbd05dbf47d4081f073e868b428e27fc Build fix: build without lttng-ust Add conditionnal inclusion of ust-sigbus to the tests modified by: commit e207fe73b58787c6077ec5d49254e12ff1a82b51 Author: orbea Date: Sat May 29 11:07:41 2021 -0700 build: Add missing DEFINE_LTTNG_UST_SIGBUS_STATE(); Fixes: liblttng-ust-ctl.so: undefined reference to `lttng_ust_sigbus_state' Change-Id: If4af7ada6d94ee67603156d151575dcc57baad05 Signed-off-by: Michael Jeanson Signed-off-by: Jérémie Galarneau --- diff --git a/tests/regression/tools/live/live_test.c b/tests/regression/tools/live/live_test.c index a9adc5946..3814c0568 100644 --- a/tests/regression/tools/live/live_test.c +++ b/tests/regression/tools/live/live_test.c @@ -23,7 +23,6 @@ #include #include -#include #include #include @@ -42,7 +41,10 @@ #define NUM_TESTS 11 #define mmap_size 524288 +#ifdef HAVE_LIBLTTNG_UST_CTL +#include DEFINE_LTTNG_UST_SIGBUS_STATE(); +#endif static int control_sock; struct live_session *session; diff --git a/tests/unit/test_kernel_data.c b/tests/unit/test_kernel_data.c index 58e701442..21ec911f2 100644 --- a/tests/unit/test_kernel_data.c +++ b/tests/unit/test_kernel_data.c @@ -15,7 +15,6 @@ #include #include #include -#include #include @@ -24,7 +23,10 @@ /* Number of TAP tests in this file */ #define NUM_TESTS 11 +#ifdef HAVE_LIBLTTNG_UST_CTL +#include DEFINE_LTTNG_UST_SIGBUS_STATE(); +#endif static const char alphanum[] = "0123456789"