summaryrefslogtreecommitdiffstats
path: root/src/godmode.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2016-02-21 10:28:55 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2016-02-21 10:28:55 +0100
commit28183c5c42d42c3d10cf95ff29fc8ec11fa5e1b2 (patch)
tree211b6c899af3489da2f7a43daedf494c8cafde2c /src/godmode.c
parent638bf26c387c86b91c8539237b510146a89a5bd7 (diff)
Fix a compilation issue when ncurses library is missing
Diffstat (limited to 'src/godmode.c')
-rw-r--r--src/godmode.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/godmode.c b/src/godmode.c
index 871c4c8..d18797d 100644
--- a/src/godmode.c
+++ b/src/godmode.c
@@ -1410,7 +1410,11 @@ int interface_recovery(disk_t *disk_car, const list_part_t * list_part_org, cons
do
{
list_part=ask_structure(disk_car,list_part,verbose,current_cmd);
- } while(fast_mode!=0 && list_part!=NULL && is_structure_empty(list_part) && ask_confirmation("Discard the results, confirm ? (Y/N)")==0);
+ } while(fast_mode!=0 && list_part!=NULL && is_structure_empty(list_part)
+#ifdef HAVE_NCURSES
+ && ask_confirmation("Discard the results, confirm ? (Y/N)")==0
+#endif
+ );
if(disk_car->arch->test_structure(list_part)==0)
{
int do_again=0;