mirror of
https://github.com/LIV2/libnix.git
synced 2025-12-06 00:23:08 +00:00
use Output() instead of CES with Kickstart 1.3
This commit is contained in:
parent
d7242b5760
commit
464a62a818
@ -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;
|
||||
|
||||
@ -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 \
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user