diff --git a/rosapps/mc/mc.rbuild b/rosapps/mc/mc.rbuild
index a1c05c7a6e9..7fae4abbf8d 100644
--- a/rosapps/mc/mc.rbuild
+++ b/rosapps/mc/mc.rbuild
@@ -9,6 +9,7 @@
kernel32
user32
+ advapi32
terms.c
diff --git a/rosapps/mc/slang/slvideo.c b/rosapps/mc/slang/slvideo.c
index b877601feff..edc1b037d97 100644
--- a/rosapps/mc/slang/slvideo.c
+++ b/rosapps/mc/slang/slvideo.c
@@ -1253,11 +1253,12 @@ void SLtt_putchar (char ch)
# else /* GO32_VIDEO */
pp = mkScreenPointer (Cursor_Row, Cursor_Col);
p = (Attribute_Byte << 8) | (unsigned char) ch;
+ *pp = p;
# ifdef USE_ASM
SNOW_CHECK;
# endif
- *pp = p;
+
# endif /* GO32_VIDEO */
# endif /* __os2__ */
#endif /* EMX_VIDEO */
diff --git a/rosapps/mc/slang/slw32tty.c b/rosapps/mc/slang/slw32tty.c
index a92c7d93a64..2cc3538388b 100644
--- a/rosapps/mc/slang/slw32tty.c
+++ b/rosapps/mc/slang/slw32tty.c
@@ -130,8 +130,7 @@ void SLang_reset_tty (void)
\*----------------------------------------------------------------------*/
int SLsys_input_pending (int tsecs)
{
- INPUT_RECORD record;
- long one = 1;
+ INPUT_RECORD record;
DWORD bytesRead;
while (1)
@@ -193,9 +192,8 @@ int SLsys_input_pending (int tsecs)
* extended keys are prefixed by a null character
\*----------------------------------------------------------------------*/
unsigned int SLsys_getkey (void)
-{
- unsigned int scan, ch, shift;
- long key;
+{
+ // long key;
DWORD bytesRead;
INPUT_RECORD record;
diff --git a/rosapps/mc/src/cmd.c b/rosapps/mc/src/cmd.c
index ba09f408102..a3f529af2ae 100644
--- a/rosapps/mc/src/cmd.c
+++ b/rosapps/mc/src/cmd.c
@@ -721,8 +721,7 @@ void reselect_vfs (void)
static int compare_files (char *name1, char *name2, long size)
{
- int file1, file2;
- char *data1, *data2;
+ int file1, file2;
int result = -1; /* Different by default */
file1 = open (name1, O_RDONLY);
diff --git a/rosapps/mc/src/main.c b/rosapps/mc/src/main.c
index 4554db0f26c..46c57924206 100644
--- a/rosapps/mc/src/main.c
+++ b/rosapps/mc/src/main.c
@@ -379,7 +379,10 @@ try_to_select (WPanel *panel, char *name)
void
cd_try_to_select (WPanel *panel)
{
+#ifdef USE_VFS
char *p, *q;
+#endif
+
int i, j = 4;
if (strlen (panel->lwd) > strlen (panel->cwd)