use Output() instead of CES with Kickstart 1.3

This commit is contained in:
bebbo 2019-01-27 20:44:41 +01:00
parent d7242b5760
commit 464a62a818
2 changed files with 6 additions and 1 deletions

View File

@ -264,7 +264,11 @@ void __initstdio(void)
fp->lx_oflags = O_WRONLY;
_setup_file(fp);
if((sfd[STDERR_FILENO]=fp=(StdFileDes *)malloc(sizeof(StdFileDes)))) {
if((fp->lx_fh=((struct Process *)FindTask(NULL))->pr_CES)==0)
#ifdef __KICK13__
if((fp->lx_fh=Output())==0)
#else
if((fp->lx_fh=((struct Process *)FindTask(NULL))->pr_CES)==0)
#endif
if(_WBenchMsg||(fp->lx_fh=stderrdes=Open("*",MODE_OLDFILE))==0)
fp->lx_fh=sfd[STDOUT_FILENO]->lx_fh;
fp->lx_pos = STDERR_FILENO;

View File

@ -43,6 +43,7 @@ OBJECTS2= \
nix/extra/truncate.o \
nix/extra/utimes.o \
nix/stdio/rename.o \
nix/stdio/open.o \
nix/stdlib/getenv.o \
nix/stdlib/putenv.o \
nix/stdlib/system.o \