summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2008-03-24 16:21:42 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2008-03-24 16:21:42 +0100
commitef4104d8ce3c3ead52bff12bf7905e8fc094533b (patch)
tree2df048545d89ef99cbaec1bab0721845d510693c /src
parentc873eb1dbb94ab4241945d4aec5bb1fb8421245c (diff)
Don't define menuNTFS/menuEXT2 if libntfs/libext2 is missing
Diffstat (limited to 'src')
-rw-r--r--src/phrecn.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/phrecn.c b/src/phrecn.c
index 9972a63..7cbeb20 100644
--- a/src/phrecn.c
+++ b/src/phrecn.c
@@ -273,18 +273,22 @@ static int ask_mode_ext2(const disk_t *disk_car, const partition_t *partition, u
{'W',"Whole","Extract files from whole partition"},
{0,NULL,NULL}
};
+#ifdef HAVE_LIBNTFS
static struct MenuItem menuNTFS[]=
{
{'F',"Free", "Scan for file from NTFS unallocated space only"},
{'W',"Whole","Extract files from whole partition"},
{0,NULL,NULL}
};
+#endif
+#ifdef HAVE_LIBEXT2FS
static struct MenuItem menuEXT2[]=
{
{'F',"Free", "Scan for file from ext2/ext3 unallocated space only"},
{'W',"Whole","Extract files from whole partition"},
{0,NULL,NULL}
};
+#endif
const char *options="EO";
WINDOW *window;
unsigned int menu;