X-Git-Url: http://git.lttng.org/?p=lttngtop.git;a=blobdiff_plain;f=src%2Flttng-live-comm.c;h=15a3dd2f62ff1971190de83efb398b44c5ba43c1;hp=988742ef3290c444b3d452a3ef37ce7d88778bab;hb=ec016cb4cf5cc8faa6d09476fb6bc1818da8e8fe;hpb=3e06508b0899221e86b317af0576338c05fde5f2 diff --git a/src/lttng-live-comm.c b/src/lttng-live-comm.c index 988742e..15a3dd2 100644 --- a/src/lttng-live-comm.c +++ b/src/lttng-live-comm.c @@ -1452,10 +1452,16 @@ void lttng_live_read(struct lttng_live_ctx *ctx) } if (!opt_textdump) { +#ifdef HAVE_LIBNCURSES pthread_create(&display_thread, NULL, ncurses_display, (void *) NULL); pthread_create(&timer_thread, NULL, refresh_thread, (void *) NULL); +#else + printf("Ncurses support not compiled, please install " + "the missing dependencies and recompile\n"); + goto end_free; +#endif } iter_trace(ctx->bt_ctx); g_hash_table_foreach_remove(ctx->session->ctf_traces,