Build fix: build without lttng-ust
authorMichael Jeanson <mjeanson@efficios.com>
Tue, 8 Jun 2021 14:55:19 +0000 (10:55 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 11 Jun 2021 20:51:57 +0000 (16:51 -0400)
Add conditionnal inclusion of ust-sigbus to the tests modified by:

  commit e207fe73b58787c6077ec5d49254e12ff1a82b51
  Author: orbea <orbea@riseup.net>
  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 <mjeanson@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
tests/regression/tools/live/live_test.c
tests/unit/test_kernel_data.c

index a9adc5946d967b9c606469b661912fd314917b41..3814c05681265e6ab03d96845d9b92ac7e399976 100644 (file)
@@ -23,7 +23,6 @@
 
 #include <tap/tap.h>
 #include <lttng/lttng.h>
-#include <lttng/ust-sigbus.h>
 
 #include <urcu/list.h>
 #include <common/common.h>
 #define NUM_TESTS 11
 #define mmap_size 524288
 
+#ifdef HAVE_LIBLTTNG_UST_CTL
+#include <lttng/ust-sigbus.h>
 DEFINE_LTTNG_UST_SIGBUS_STATE();
+#endif
 
 static int control_sock;
 struct live_session *session;
index 58e7014422fb6bb68484025a96972460238bdef8..21ec911f20c810d619fe261a58946b614fe28917 100644 (file)
@@ -15,7 +15,6 @@
 #include <common/compat/errno.h>
 #include <bin/lttng-sessiond/trace-kernel.h>
 #include <common/defaults.h>
-#include <lttng/ust-sigbus.h>
 
 #include <tap/tap.h>
 
 /* Number of TAP tests in this file */
 #define NUM_TESTS 11
 
+#ifdef HAVE_LIBLTTNG_UST_CTL
+#include <lttng/ust-sigbus.h>
 DEFINE_LTTNG_UST_SIGBUS_STATE();
+#endif
 
 static const char alphanum[] =
        "0123456789"
This page took 0.026951 seconds and 5 git commands to generate.