summaryrefslogtreecommitdiffstats
path: root/src/addpartn.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2013-05-15 18:23:24 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2013-05-15 18:23:24 +0200
commit06a90fa1c261c34922b3450bb32b0fcbf8c24d56 (patch)
tree195b59abb333cc534c86bf5cfec5d7752180d7c7 /src/addpartn.c
parent816032140813972e230863a002b4acd1b15d2bcf (diff)
Compilation fix when curses interface is missing
Diffstat (limited to 'src/addpartn.c')
-rw-r--r--src/addpartn.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/addpartn.c b/src/addpartn.c
index 948a361..4f4000f 100644
--- a/src/addpartn.c
+++ b/src/addpartn.c
@@ -24,6 +24,7 @@
#include <config.h>
#endif
+#ifdef HAVE_NCURSES
#include <stdio.h>
#include "types.h"
#include "common.h"
@@ -59,3 +60,4 @@ list_part_t *add_partition_ncurses(disk_t *disk, list_part_t *list_part)
return add_partition_xbox_ncurses(disk, list_part);
return list_part;
}
+#endif