Subject: Re: pkg/35243: sysutils/whowatch fails to build on netbsd-4 (patch included)
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: Thomas Klausner <wiz@NetBSD.org>
List: pkgsrc-bugs
Date: 12/13/2006 06:50:02
The following reply was made to PR pkg/35243; it has been noted by GNATS.
From: Thomas Klausner <wiz@NetBSD.org>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: pkg/35243: sysutils/whowatch fails to build on netbsd-4 (patch included)
Date: Wed, 13 Dec 2006 07:46:58 +0100
On Wed, Dec 13, 2006 at 01:20:01AM +0000, dhowland@users.sourceforge.net wrote:
> diff -u process.c.orig process.c
> --- process.c.orig 2006-12-12 19:39:14.000000000 -0500
> +++ process.c 2006-12-12 19:38:11.000000000 -0500
> @@ -74,7 +74,11 @@
> memset(z, 0, sizeof *z);
> check_line(l);
> z->line = l++;
> +#if defined(__NetBSD__)
> + p->priv = z;
> +#else
> (struct process *) p->priv = z;
> +#endif
> z->proc = p;
> if (*current){
> z->next = *current;
I think unconditionally removing the cast is better, since
this is not NetBSD specific, but a gcc4 problem.
Thomas