Thu Jul 24 17:30:14 2008 UTC ()
"Apparently pulling in Xmd.h here [XI.h] breaks qt, since they both
define an INT32 type (and incompatible ones even, since Xmd's is
unsigned long on ILP32." (from GIT)
Bump PKGREVISION.
(bjs)
diff -r1.7 -r1.8 pkgsrc/x11/inputproto/Makefile
diff -r1.6 -r1.7 pkgsrc/x11/inputproto/distinfo
diff -r0 -r1.1 pkgsrc/x11/inputproto/patches/patch-aa
--- pkgsrc/x11/inputproto/Attic/Makefile 2008/05/24 21:45:14 1.7
+++ pkgsrc/x11/inputproto/Attic/Makefile 2008/07/24 17:30:14 1.8
--- pkgsrc/x11/inputproto/Attic/distinfo 2008/03/07 20:18:07 1.6
+++ pkgsrc/x11/inputproto/Attic/distinfo 2008/07/24 17:30:14 1.7
$NetBSD: patch-aa,v 1.1 2008/07/24 17:30:14 bjs Exp $
"Apparently pulling in Xmd.h here breaks qt, since they both define an
INT32 type (and incompatible ones even, since Xmd's is unsigned long on
ILP32." (from GIT)
--- XI.h.orig 2008-03-05 22:05:38.000000000 -0500
+++ XI.h
@@ -52,8 +52,6 @@ SOFTWARE.
#ifndef _XI_H_
#define _XI_H_
-#include <X11/Xmd.h> /* CARD32 */
-
#define sz_xGetExtensionVersionReq 8
#define sz_xGetExtensionVersionReply 32
#define sz_xListInputDevicesReq 4
@@ -263,12 +261,16 @@ SOFTWARE.
#define XI_DeviceBusy 3
#define XI_BadClass 4
-/* Make XEventClass be a CARD32 for 64 bit servers. Don't affect client
+/*
+ * Make XEventClass be a CARD32 for 64 bit servers. Don't affect client
* definition of XEventClass since that would be a library interface change.
* See the top of X.h for more _XSERVER64 magic.
+ *
+ * But, don't actually use the CARD32 type. We can't get it defined here
+ * without polluting the namespace.
*/
#ifdef _XSERVER64
-typedef CARD32 XEventClass;
+typedef unsigned int XEventClass;
#else
typedef unsigned long XEventClass;
#endif