Don't use AM_CONDITIONAL for CURSES.
[tinc] / src / top.c
index b71bcb8..a457e08 100644 (file)
--- a/src/top.c
+++ b/src/top.c
@@ -19,6 +19,8 @@
 
 #include "system.h"
 
+#ifdef HAVE_CURSES
+
 #include <curses.h>
 
 #include "control_common.h"
@@ -310,3 +312,5 @@ void top(int fd) {
 
        endwin();
 }
+
+#endif