Make libncurses optional
[lttngtop.git] / src / lttng-live-comm.c
index 988742ef3290c444b3d452a3ef37ce7d88778bab..15a3dd2f62ff1971190de83efb398b44c5ba43c1 100644 (file)
@@ -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,
This page took 0.022922 seconds and 4 git commands to generate.