summaryrefslogtreecommitdiff
path: root/graphics
diff options
context:
space:
mode:
authorobache <obache@pkgsrc.org>2008-07-13 15:00:48 +0000
committerobache <obache@pkgsrc.org>2008-07-13 15:00:48 +0000
commitf50fd446f63d0f6b116f25b4971968106fc17e91 (patch)
tree0a04544d731276cfd581cd0cb2ded2f38c6ab241 /graphics
parent782f322b4352f771eab1caf1860459268dc2459a (diff)
downloadpkgsrc-f50fd446f63d0f6b116f25b4971968106fc17e91.tar.gz
Add patch to fix build failure in FreeBSD and DragonFly specific code.
Patch provided by Hasso Tepper in PR 38863 and alread fixed in upsteram. http://ggi.cvs.sourceforge.net/ggi/ggi-core/libggi/display/vgl/visual.c?r1=1.12&r2=1.13
Diffstat (limited to 'graphics')
-rw-r--r--graphics/libggi/distinfo3
-rw-r--r--graphics/libggi/patches/patch-ae20
2 files changed, 22 insertions, 1 deletions
diff --git a/graphics/libggi/distinfo b/graphics/libggi/distinfo
index 9d25830ad82..5d6eefdff3b 100644
--- a/graphics/libggi/distinfo
+++ b/graphics/libggi/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.13 2007/03/16 22:28:55 joerg Exp $
+$NetBSD: distinfo,v 1.14 2008/07/13 15:00:48 obache Exp $
SHA1 (libggi-2.1.1.src.tar.bz2) = 38b5deeb161d2b923104138bf4fe8e0e72c4601d
RMD160 (libggi-2.1.1.src.tar.bz2) = 69bbe53775465774b93213bf9e8aa13cf3d93148
@@ -7,3 +7,4 @@ SHA1 (patch-aa) = 52163f169a9581b0cf0295cd173136660e1639b9
SHA1 (patch-ab) = 025f85629f7713323fc67d84237d519d32bf810b
SHA1 (patch-ac) = db9a3b4cabb264ace844d1a32d833c45caa5dd20
SHA1 (patch-ad) = 0764cbec555ea68fa55952be8b21fc8508fe97f5
+SHA1 (patch-ae) = fdb08db44a939f9fd1b9b3feaf8d063dc9faadd5
diff --git a/graphics/libggi/patches/patch-ae b/graphics/libggi/patches/patch-ae
new file mode 100644
index 00000000000..1fd8f35ba48
--- /dev/null
+++ b/graphics/libggi/patches/patch-ae
@@ -0,0 +1,20 @@
+$NetBSD: patch-ae,v 1.3 2008/07/13 15:00:48 obache Exp $
+
+--- display/vgl/visual.c.orig 2008-06-05 08:54:51 +0300
++++ display/vgl/visual.c 2008-06-05 08:55:35 +0300
+@@ -210,13 +210,12 @@ static int GGIopen(ggi_visual *vis, stru
+ error = GGI_ENOMEM;
+ goto error;
+ }
+- VGL_PRIV(vis) = malloc(sizeof(struct vgl_priv));
+- if (VGL_PRIV(vis) == NULL) {
++ LIBGGI_PRIVATE(vis) = priv = malloc(sizeof(struct vgl_priv));
++ if (priv == NULL) {
+ do_cleanup(vis);
+ error = GGI_ENOMEM;
+ goto error;
+ }
+- priv = VGL_PRIV(vis);
+ memset(priv, 0, sizeof(*priv));
+
+ memset(priv->vgl_palred, 0, sizeof(priv->vgl_palred));