This is the mail archive of the
mailing list for the GCC project.
Re: [PATCH] Rename pwait for LynxOS
Adam Nemet <firstname.lastname@example.org> writes:
>> Why is libc's pwait() getting pulled in at all? If libiberty is
>> providing one, there's no reason for libc's pwait() to be needed.
> Well, the two pwait's are identical only in name. They have different
> prototypes and different functionalities otherwise. For the actual
> error, see the bottom of
> And pwait is packaged with system into one member of libc.a.
That's arguably a bug in libc - use of system() should not cause the
user program to be unable to use the name pwait, which is not reserved
by the C standard.
> The definition of system is included because of tlink.o.
That suggests another potential fix, which is to change tlink.c to use
pexecute instead of system, thus preventing libc's pwait from being