diff options
author | zeising <zeising@058c260c-8361-11dd-a0ac-aa2bafec7d09> | 2013-03-26 03:35:41 +0800 |
---|---|---|
committer | zeising <zeising@058c260c-8361-11dd-a0ac-aa2bafec7d09> | 2013-03-26 03:35:41 +0800 |
commit | c1cf2586d9575496d997d4234c65fdcc35a06164 (patch) | |
tree | bbe10c18b0bb1565a2218d45655fa4b6645dd136 /x11/libXxf86dga | |
parent | 0e15b84a58acbce3474e7f07514fdb96282bd501 (diff) | |
download | xorg-devel-ports-c1cf2586d9575496d997d4234c65fdcc35a06164.tar xorg-devel-ports-c1cf2586d9575496d997d4234c65fdcc35a06164.tar.gz xorg-devel-ports-c1cf2586d9575496d997d4234c65fdcc35a06164.tar.bz2 xorg-devel-ports-c1cf2586d9575496d997d4234c65fdcc35a06164.tar.lz xorg-devel-ports-c1cf2586d9575496d997d4234c65fdcc35a06164.tar.xz xorg-devel-ports-c1cf2586d9575496d997d4234c65fdcc35a06164.tar.zst xorg-devel-ports-c1cf2586d9575496d997d4234c65fdcc35a06164.zip |
Fix build on i386 when built with gcc.
Obtained from: freedesktop.org git repo
git-svn-id: https://trillian.chruetertee.ch/svn/ports/trunk@770 058c260c-8361-11dd-a0ac-aa2bafec7d09
Diffstat (limited to 'x11/libXxf86dga')
-rw-r--r-- | x11/libXxf86dga/files/patch-src_XF86DGA.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/x11/libXxf86dga/files/patch-src_XF86DGA.c b/x11/libXxf86dga/files/patch-src_XF86DGA.c new file mode 100644 index 0000000..90768c9 --- /dev/null +++ b/x11/libXxf86dga/files/patch-src_XF86DGA.c @@ -0,0 +1,20 @@ +--- src/XF86DGA2.c.orig 2013-03-25 20:23:42.796859881 +0100 ++++ src/XF86DGA.c 2013-03-25 20:23:17.997856725 +0100 +@@ -21,6 +21,8 @@ + #include <X11/extensions/extutil.h> + #include <stdio.h> + ++#include <stdint.h> ++ + + /* If you change this, change the Bases[] array below as well */ + #define MAX_HEADS 16 +@@ -928,7 +930,7 @@ + if ((pMap->fd = open(name, O_RDWR)) < 0) + return False; + pMap->virtual = mmap(NULL, size, PROT_READ | PROT_WRITE, +- MAP_FILE | MAP_SHARED, pMap->fd, (off_t)base); ++ MAP_FILE | MAP_SHARED, pMap->fd, (off_t)(uintptr_t)base); + if (pMap->virtual == (void *)-1) + return False; + mprotect(pMap->virtual, size, PROT_READ | PROT_WRITE); |