pkgsrc-Bugs archive

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

Re: pkg/46104: kdegames4 ALIGN defined in sys/param.h NetBSD 6.99.3 patch



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

From: Joerg Sonnenberger <joerg%britannica.bec.de@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: pkg/46104: kdegames4 ALIGN defined in sys/param.h NetBSD 6.99.3
 patch
Date: Mon, 27 Feb 2012 13:28:07 +0100

 On Mon, Feb 27, 2012 at 12:25:00AM +0000, davshao%gmail.com@localhost wrote:
 > --- libkdegames/kggzmod/misc_private.h.orig  2009-03-18 09:57:42.000000000 
 > +0000
 > +++ libkdegames/kggzmod/misc_private.h
 > @@ -30,6 +30,12 @@
 >  #include <arpa/inet.h>
 >  #include <netinet/in.h>
 >  #include <netdb.h>
 > +#ifdef __NetBSD__
 > +#include <sys/param.h>
 > +#include <machine/param.h>
 > +#undef CMSG_SPACE
 > +#define CMSG_SPACE(l)   (ALIGN(sizeof(struct cmsghdr)) + ALIGN(l))
 > +#endif
 
 This doesn't make sense. ALIGN and __CMSG_ALIGN are not necessarily the
 same. So why can't this just use CMSG_SPACE as defined in sys/socket.h?
 
 Joerg
 


Home | Main Index | Thread Index | Old Index