diff --git a/mach/sparc/ce/back.src/back.h b/mach/sparc/ce/back.src/back.h index 8aa353731..cb53d1289 100644 --- a/mach/sparc/ce/back.src/back.h +++ b/mach/sparc/ce/back.src/back.h @@ -50,8 +50,7 @@ #define set_local_visible B_stlocvis #define symbol_definition B_symdef #define switchseg B_switchseg - -extern File *codefile; +#define not_implemented B_not_implemented extern char *extnd_name(), *extnd_dnam(), *extnd_dlb(), *extnd_ilb(), *extnd_hol(), *extnd_ext(), *extnd_pro(), *extnd_start(), @@ -67,3 +66,19 @@ extern char *extnd_name(), *extnd_dnam(), *extnd_dlb(), *extnd_ilb(), #define SEGHOL -1 /* Does not exist */ #define ABSOLUTE 1 + +#define fprint fprintf +#define sprint sprintf +#define print printf +#undef STDOUT +#define STDOUT stdout +#undef STDERR +#define STDERR stderr +#undef STDIN +#define STDIN stdin +#undef File +#define File FILE +#define sys_close fclose +#include + +extern File *codefile; diff --git a/mach/sparc/ce/back.src/do_open.c b/mach/sparc/ce/back.src/do_open.c index 8f58f649f..b90c11023 100644 --- a/mach/sparc/ce/back.src/do_open.c +++ b/mach/sparc/ce/back.src/do_open.c @@ -6,6 +6,10 @@ char *filename; if ( filename == (char *) 0) codefile= STDOUT; else +#ifndef sys_close return( sys_open( filename, OP_WRITE, &codefile)); +#else + return (codefile = fopen(filename, "w")) != NULL; +#endif return 1; }