added watt32 headers and brought the DOS version up to parity with UNIX
[oftp] / src / main.c
index 9b4f9d5..5fdacc6 100644 (file)
@@ -3,7 +3,7 @@
 #include <signal.h>
 #include <errno.h>
 #include <assert.h>
-#ifdef __MSDOS__
+#ifdef __DOS__
 #include <direct.h>
 #else
 #include <unistd.h>
 #include "ftp.h"
 #include "darray.h"
 
+#ifdef __DOS__
+#define select select_s
+#endif
+
 void updateui(void);
 int update_localdir(void);
 int proc_input(void);
@@ -104,6 +108,10 @@ int main(int argc, char **argv)
                                break;
                        }
                }
+#else
+               if(proc_input() == -1) {
+                       break;
+               }
 #endif
 
                for(i=0; i<numsock; i++) {