Make libncurses optional
[lttngtop.git] / src / cursesdisplay.c
index 7f52c8b0e88bbc949b28bff376e2283dcca903d5..9e7afb2bcadf13ce91a45e757d5bd210858980dd 100644 (file)
  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
 
+#include <config.h>
+
+#ifdef HAVE_LIBNCURSES
+
 #include <stdio.h>
 #include <stdlib.h>
 #include <signal.h>
@@ -1771,3 +1775,5 @@ void init_ncurses()
 
        pthread_create(&keyboard_thread, NULL, handle_keyboard, (void *)NULL);
 }
+
+#endif /* HAVE_LIBNCURSES */
This page took 0.022227 seconds and 4 git commands to generate.