1 |
dberkholz 08/03/12 03:50:28 |
2 |
|
3 |
Added: 0002-Typo-fix.patch |
4 |
0001-C-sucks-define-XEventClass-in-terms-of-unsigned-int.patch |
5 |
Log: |
6 |
(#213052) Fix incompatibility with qt -- INT32 definition conflict. |
7 |
(Portage version: 2.1.4.4) |
8 |
|
9 |
Revision Changes Path |
10 |
1.1 x11-proto/inputproto/files/0002-Typo-fix.patch |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-proto/inputproto/files/0002-Typo-fix.patch?rev=1.1&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-proto/inputproto/files/0002-Typo-fix.patch?rev=1.1&content-type=text/plain |
14 |
|
15 |
Index: 0002-Typo-fix.patch |
16 |
=================================================================== |
17 |
From 852568991b251e9366da167f1b746a0a1db6adf0 Mon Sep 17 00:00:00 2001 |
18 |
From: Adam Jackson <ajax@××××××.com> |
19 |
Date: Mon, 10 Mar 2008 09:31:51 -0400 |
20 |
Subject: [PATCH] Typo fix. |
21 |
|
22 |
--- |
23 |
XI.h | 2 ++ |
24 |
1 files changed, 2 insertions(+), 0 deletions(-) |
25 |
|
26 |
diff --git a/XI.h b/XI.h |
27 |
index ec9bee2..3b11860 100644 |
28 |
--- a/XI.h |
29 |
+++ b/XI.h |
30 |
@@ -49,6 +49,8 @@ SOFTWARE. |
31 |
#ifndef _XI_H_ |
32 |
#define _XI_H_ |
33 |
|
34 |
+#define sz_xGetExtensionVersionReq 8 |
35 |
+#define sz_xGetExtensionVersionReply 32 |
36 |
#define sz_xListInputDevicesReq 4 |
37 |
#define sz_xListInputDevicesReply 32 |
38 |
#define sz_xOpenDeviceReq 8 |
39 |
-- |
40 |
1.5.4.3 |
41 |
|
42 |
|
43 |
|
44 |
|
45 |
1.1 x11-proto/inputproto/files/0001-C-sucks-define-XEventClass-in-terms-of-unsigned-int.patch |
46 |
|
47 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-proto/inputproto/files/0001-C-sucks-define-XEventClass-in-terms-of-unsigned-int.patch?rev=1.1&view=markup |
48 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-proto/inputproto/files/0001-C-sucks-define-XEventClass-in-terms-of-unsigned-int.patch?rev=1.1&content-type=text/plain |
49 |
|
50 |
Index: 0001-C-sucks-define-XEventClass-in-terms-of-unsigned-int.patch |
51 |
=================================================================== |
52 |
From b5cbe2d93f6c0129b8f29da97778f6d1b15c38f9 Mon Sep 17 00:00:00 2001 |
53 |
From: Adam Jackson <ajax@××××××.com> |
54 |
Date: Mon, 10 Mar 2008 09:08:21 -0400 |
55 |
Subject: [PATCH] C sucks: define XEventClass in terms of unsigned int, not CARD32. |
56 |
|
57 |
Apparently pulling in Xmd.h here breaks qt, since they both define an |
58 |
INT32 type (and incompatible ones even, since Xmd's is unsigned long on |
59 |
ILP32 because whoever wrote Xmd.h is a C novice). |
60 |
--- |
61 |
XI.h | 15 ++++++--------- |
62 |
1 files changed, 6 insertions(+), 9 deletions(-) |
63 |
|
64 |
diff --git a/XI.h b/XI.h |
65 |
index fe4981a..ec9bee2 100644 |
66 |
--- a/XI.h |
67 |
+++ b/XI.h |
68 |
@@ -1,5 +1,3 @@ |
69 |
-/* $Xorg: XI.h,v 1.4 2001/02/09 02:03:23 xorgcvs Exp $ */ |
70 |
- |
71 |
/************************************************************ |
72 |
|
73 |
Copyright 1989, 1998 The Open Group |
74 |
@@ -45,17 +43,12 @@ ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS |
75 |
SOFTWARE. |
76 |
|
77 |
********************************************************/ |
78 |
-/* $XFree86: xc/include/extensions/XI.h,v 1.4 2001/01/17 17:53:16 dawes Exp $ */ |
79 |
|
80 |
/* Definitions used by the server, library and client */ |
81 |
|
82 |
#ifndef _XI_H_ |
83 |
#define _XI_H_ |
84 |
|
85 |
-#include <X11/Xmd.h> /* CARD32 */ |
86 |
- |
87 |
-#define sz_xGetExtensionVersionReq 8 |
88 |
-#define sz_xGetExtensionVersionReply 32 |
89 |
#define sz_xListInputDevicesReq 4 |
90 |
#define sz_xListInputDevicesReply 32 |
91 |
#define sz_xOpenDeviceReq 8 |
92 |
@@ -263,12 +256,16 @@ SOFTWARE. |
93 |
#define XI_DeviceBusy 3 |
94 |
#define XI_BadClass 4 |
95 |
|
96 |
-/* Make XEventClass be a CARD32 for 64 bit servers. Don't affect client |
97 |
+/* |
98 |
+ * Make XEventClass be a CARD32 for 64 bit servers. Don't affect client |
99 |
* definition of XEventClass since that would be a library interface change. |
100 |
* See the top of X.h for more _XSERVER64 magic. |
101 |
+ * |
102 |
+ * But, don't actually use the CARD32 type. We can't get it defined here |
103 |
+ * without polluting the namespace. |
104 |
*/ |
105 |
#ifdef _XSERVER64 |
106 |
-typedef CARD32 XEventClass; |
107 |
+typedef unsigned int XEventClass; |
108 |
#else |
109 |
typedef unsigned long XEventClass; |
110 |
#endif |
111 |
-- |
112 |
1.5.4.3 |
113 |
|
114 |
|
115 |
|
116 |
|
117 |
-- |
118 |
gentoo-commits@l.g.o mailing list |