diff --git a/src/uifc/uifc.c b/src/uifc/uifc.c
index 7fde981576c74deaae2769c51c245c7c8f5a134f..6992b563044e578919708aed18c89c2541f14fd0 100644
--- a/src/uifc/uifc.c
+++ b/src/uifc/uifc.c
@@ -37,6 +37,7 @@
 
 #include "uifc.h"
 #include <share.h>
+#include <conio.h>
 
 #if defined(__OS2__)
 
diff --git a/src/uifc/uifc.h b/src/uifc/uifc.h
index f87fd8ac53fda73cc3faca3f245dad66227861b8..ef7a6663b7265b14781869f7d5ed6dcc69b3c20d 100644
--- a/src/uifc/uifc.h
+++ b/src/uifc/uifc.h
@@ -48,15 +48,12 @@
 #endif
 #if !defined(__unix__)
     #include <io.h>
-    #include <conio.h>
 #endif
 #if !defined(__FreeBSD__)
 	#include <malloc.h>		/* malloc prototype */
 #endif
 #if (defined(__unix__) || defined(_WIN32)) && !defined(__FLAT__)
     #define __FLAT__
-#else
-    #include <dos.h>
 #endif
 
 #if defined(__FLAT__)