[distcc] building distcc-0.13 on irix
Michael Santy
mike.santy at dynetics.com
Tue Nov 12 13:34:01 GMT 2002
IRIX does not have the wait4 function. Therefore in dcc_collect_child()
in exec.c, replace:
if ((ret_pid = wait4(pid, wait_status, 0, &ru)) != -1) {
with:
#if defined(__sgi__)
if ((ret_pid = waitpid(pid, wait_status, 0)) != -1) {
getrusage(-1, &ru);
#else
if ((ret_pid = wait4(pid, wait_status, 0, &ru)) != -1) {
#endif
or however else you want it done. This compiles and seems to work.
Thanks,
Mike Santy
More information about the distcc
mailing list