From: Jérémie Galarneau Date: Wed, 4 Sep 2019 23:54:16 +0000 (-0400) Subject: Fix: lttcomm_consumer_close_trace_chunk_reply undefined without UST X-Git-Tag: v2.12.0-rc1~465 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=517915328bfcf050e7236a6879d97ea0d45693c1;p=lttng-tools.git Fix: lttcomm_consumer_close_trace_chunk_reply undefined without UST lttcomm_consumer_close_trace_chunk_reply is not defined when lttng-tools is build without lttng-ust support. Move its declaration as part of the common section of sessiond-comm.h. Signed-off-by: Jérémie Galarneau --- diff --git a/src/common/sessiond-comm/sessiond-comm.h b/src/common/sessiond-comm/sessiond-comm.h index 6fc65a103..a80a6ee97 100644 --- a/src/common/sessiond-comm/sessiond-comm.h +++ b/src/common/sessiond-comm/sessiond-comm.h @@ -693,14 +693,14 @@ struct lttcomm_consumer_status_channel { unsigned int stream_count; } LTTNG_PACKED; -#ifdef HAVE_LIBLTTNG_UST_CTL - struct lttcomm_consumer_close_trace_chunk_reply { enum lttcomm_return_code ret_code; uint32_t path_length; char path[]; }; +#ifdef HAVE_LIBLTTNG_UST_CTL + #include /*