File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 55#include <fcntl.h>
66#include <sys/stat.h>
77#include <string.h>
8- #include <io.h>
98#include <unistd.h>
109#include <ctype.h>
1110
11+ #ifndef O_BINARY
12+ #define O_BINARY 0
13+ #endif
1214
1315static void
1416exe2aout (char * fname )
Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ all :: native \
2222native :: \
2323 $(HOSTBIN ) /stubedit.exe \
2424 $(HOSTBIN ) /stubify.exe \
25+ $(HOSTBIN ) /exe2coff.exe \
2526 $(INC ) /stubinfo.h \
2627 $E
2728 $(NOP )
@@ -68,6 +69,9 @@ $(HOSTBIN)/stubify.exe : stubify.c stub.h
6869$(HOSTBIN ) /stubedit.exe : stubedit.c $(INC ) /stubinfo.h
6970 $(GCC ) stubedit.c -o $@
7071
72+ $(HOSTBIN ) /exe2coff.exe : exe2coff.c
73+ $(GCC ) exe2coff.c -o $@
74+
7175./stub2inc.exe : stub2inc.c
7276 $(GCC ) stub2inc.c -o $@
7377
You can’t perform that action at this time.
0 commit comments