pkgsrc-Bugs archive

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

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



>Number:         46104
>Category:       pkg
>Synopsis:       kdegames4 ALIGN defined in sys/param.h NetBSD 6.99.3 patch
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Feb 27 00:25:00 +0000 2012
>Originator:     David Shao
>Release:        NetBSD 6.99.3 (GENERIC)
>Organization:
>Environment:
NetBSD 6.99.3 (GENERIC) #0 /usr/obj/sys/arch/amd64/compile/GENERIC amd64

>Description:
Moving the definition of ALIGN in NetBSD current to sys/param.h requires a 
patch to pkgsrc current games/kdegames4 libkdegames/kggzmod/misc_private.h, 
because the current patch uses matchine/param.h instead.

>How-To-Repeat:
Using NetBSD 6.99.3 and pkgsrc current, for games/kdegames4
make install
>Fix:
Revised patch patch-aa which leaves in machine/param.h for earlier NetBSD 
versions:

$NetBSD$

--- 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
 
 #ifdef Q_OS_WIN
 #include <kdebug.h>



Home | Main Index | Thread Index | Old Index