summaryrefslogtreecommitdiffstats
path: root/meta/recipes-graphics/xorg-lib
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-graphics/xorg-lib')
-rw-r--r--meta/recipes-graphics/xorg-lib/libxxf86dga/libxxf86dga-1.1.3_fix_for_x32.patch30
1 files changed, 0 insertions, 30 deletions
diff --git a/meta/recipes-graphics/xorg-lib/libxxf86dga/libxxf86dga-1.1.3_fix_for_x32.patch b/meta/recipes-graphics/xorg-lib/libxxf86dga/libxxf86dga-1.1.3_fix_for_x32.patch
deleted file mode 100644
index 4a0c682554..0000000000
--- a/meta/recipes-graphics/xorg-lib/libxxf86dga/libxxf86dga-1.1.3_fix_for_x32.patch
+++ /dev/null
@@ -1,30 +0,0 @@
1Upstream-Status: pending
2
3Fix type conversion for x32. For x32 the off_t is 64bit and pointers are 32bit.
4so the conversion of pointer to off_t was resulting into this error:
5
6| XF86DGA2.c:931:24: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast]
7| cc1: some warnings being treated as errors
8|
9| make[2]: *** [XF86DGA2.lo] Error 1
10
11Fixed it by typecasting pointer into unsigned long 1st and then again typecasting
12unsigned long to off_t.
13
14Signed-Off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
152012/01/04
16
17
18Index: libXxf86dga-1.1.3/src/XF86DGA2.c
19===================================================================
20--- libXxf86dga-1.1.3.orig/src/XF86DGA2.c
21+++ libXxf86dga-1.1.3/src/XF86DGA2.c
22@@ -928,7 +928,7 @@ DGAMapPhysical(
23 if ((pMap->fd = open(name, O_RDWR)) < 0)
24 return False;
25 pMap->virtual = mmap(NULL, size, PROT_READ | PROT_WRITE,
26- MAP_FILE | MAP_SHARED, pMap->fd, (off_t)base);
27+ MAP_FILE | MAP_SHARED, pMap->fd, (off_t)(unsigned long)base);
28 if (pMap->virtual == (void *)-1)
29 return False;
30 mprotect(pMap->virtual, size, PROT_READ | PROT_WRITE);