projects
/
oftp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added watt32 headers and brought the DOS version up to parity with UNIX
[oftp]
/
src
/
main.c
diff --git
a/src/main.c
b/src/main.c
index
9b4f9d5
..
5fdacc6
100644
(file)
--- a/
src/main.c
+++ b/
src/main.c
@@
-3,7
+3,7
@@
#include <signal.h>
#include <errno.h>
#include <assert.h>
#include <signal.h>
#include <errno.h>
#include <assert.h>
-#ifdef __MSDOS__
+#ifdef __DOS__
#include <direct.h>
#else
#include <unistd.h>
#include <direct.h>
#else
#include <unistd.h>
@@
-18,6
+18,10
@@
#include "ftp.h"
#include "darray.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);
void updateui(void);
int update_localdir(void);
int proc_input(void);
@@
-104,6
+108,10
@@
int main(int argc, char **argv)
break;
}
}
break;
}
}
+#else
+ if(proc_input() == -1) {
+ break;
+ }
#endif
for(i=0; i<numsock; i++) {
#endif
for(i=0; i<numsock; i++) {