aboutsummaryrefslogtreecommitdiffstats
path: root/x11-wm
diff options
context:
space:
mode:
authorscheidell <scheidell@FreeBSD.org>2012-01-10 12:48:21 +0800
committerscheidell <scheidell@FreeBSD.org>2012-01-10 12:48:21 +0800
commit053edabdf4ed004800df02e34e70bdaf9cc2f624 (patch)
tree45e881e6197b96bf41afd3f37d9814c3e5fed24b /x11-wm
parentfe1f40408a32a5210003006d817a3635194308dd (diff)
downloadfreebsd-ports-gnome-053edabdf4ed004800df02e34e70bdaf9cc2f624.tar.gz
freebsd-ports-gnome-053edabdf4ed004800df02e34e70bdaf9cc2f624.tar.zst
freebsd-ports-gnome-053edabdf4ed004800df02e34e70bdaf9cc2f624.zip
- patch potential amd64 problem with assuming long is 32bits
PR: ports/163939 Submitted by: maintainer Approved by: gabor (mentor, implicit)
Diffstat (limited to 'x11-wm')
-rw-r--r--x11-wm/ctwm/Makefile1
-rw-r--r--x11-wm/ctwm/files/patch-util.c11
2 files changed, 12 insertions, 0 deletions
diff --git a/x11-wm/ctwm/Makefile b/x11-wm/ctwm/Makefile
index e263f61827bb..e84c349e8fd8 100644
--- a/x11-wm/ctwm/Makefile
+++ b/x11-wm/ctwm/Makefile
@@ -7,6 +7,7 @@
PORTNAME= ctwm
PORTVERSION= 3.8.1
+PORTREVISION= 1
PORTEPOCH= 1
CATEGORIES= x11-wm
MASTER_SITES= http://ctwm.free.lp.se/dist/ \
diff --git a/x11-wm/ctwm/files/patch-util.c b/x11-wm/ctwm/files/patch-util.c
new file mode 100644
index 000000000000..f460a7e0bdf7
--- /dev/null
+++ b/x11-wm/ctwm/files/patch-util.c
@@ -0,0 +1,11 @@
+--- util.c.orig 2012-01-08 16:51:48.245308175 -0600
++++ util.c 2012-01-08 16:51:52.168309618 -0600
+@@ -3941,7 +3941,7 @@
+ #ifdef JPEG
+
+ unsigned short int *buffer_16bpp;
+-long *buffer_32bpp;
++uint32_t *buffer_32bpp;
+
+ static void convert_for_16 (int w, int x, int y, int r, int g, int b) {
+ buffer_16bpp [y * w + x] = ((r >> 3) << 11) + ((g >> 2) << 5) + (b >> 3);