pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pkg/35243: sysutils/whowatch fails to build on netbsd-4 (patch included)



The following reply was made to PR pkg/35243; it has been noted by GNATS.

From: Thomas Klausner <wiz%NetBSD.org@localhost>
To: gnats-bugs%NetBSD.org@localhost
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@localhost 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
 



Home | Main Index | Thread Index | Old Index