Subject: Re: bootstrapping Fedora Core 4
To: Berndt Josef Wulf <wulf@ping.net.au>
From: Roland Illig <rillig@netbsd.org>
List: tech-pkg
Date: 10/25/2005 11:18:33
This is a multi-part message in MIME format.
--------------040702050207060304010405
Content-Type: text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding: 8bit

Berndt Josef Wulf wrote:
> ===> Installing bmake
..
> compat.c: In function ‘CompatRunCommand’:
> compat.c:318: error: incompatible type for argument 1 of ‘wait’
> make: *** [compat.o] Error 1
> ===> exited with status 2
> aborted.

Please try this patch. If it works, can someone answer the question why 
we should use wait() instead of waitpid() here?

Roland

--------------040702050207060304010405
Content-Type: text/plain;
 name="bmake-wait.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="bmake-wait.patch"

Index: compat.c
===================================================================
RCS file: /cvsroot/pkgsrc/bootstrap/bmake/compat.c,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 compat.c
--- compat.c	11 Mar 2004 13:04:01 -0000	1.1.1.1
+++ compat.c	25 Oct 2005 09:16:13 -0000
@@ -315,7 +315,7 @@ CompatRunCommand (cmdp, gnp)
      */
     while (1) {
 
-	while ((stat = wait(&reason)) != cpid) {
+	while ((stat = waitpid(cpid, &reason, 0)) != cpid) {
 	    if (stat == -1 && errno != EINTR) {
 		break;
 	    }

--------------040702050207060304010405--