summaryrefslogtreecommitdiff
path: root/x11
diff options
context:
space:
mode:
authorkristerw <kristerw@pkgsrc.org>2005-07-25 03:14:09 +0000
committerkristerw <kristerw@pkgsrc.org>2005-07-25 03:14:09 +0000
commitf7ebbb93a0bd096dfdb78148ee21148eaeccbd78 (patch)
treeed8d1cf306597741f167e6b04f50d820bc7eb42a /x11
parentf820b7eb90a62a81fa4f9ab52db332e9cc5a2b21 (diff)
downloadpkgsrc-f7ebbb93a0bd096dfdb78148ee21148eaeccbd78.tar.gz
Fix C99 variable declarations to make this pkg compile with gcc 2.95.
Diffstat (limited to 'x11')
-rw-r--r--x11/hsetroot/distinfo3
-rw-r--r--x11/hsetroot/patches/patch-aa19
2 files changed, 21 insertions, 1 deletions
diff --git a/x11/hsetroot/distinfo b/x11/hsetroot/distinfo
index 964cb7642bd..ab3ce12cec0 100644
--- a/x11/hsetroot/distinfo
+++ b/x11/hsetroot/distinfo
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.1.1.1 2005/05/22 09:16:28 jmmv Exp $
+$NetBSD: distinfo,v 1.2 2005/07/25 03:14:09 kristerw Exp $
SHA1 (hsetroot-1.0.2.tar.gz) = a39e0fff11eb17e5432761aabcd8b68242210bb5
RMD160 (hsetroot-1.0.2.tar.gz) = 0aadf0308ec0068525babca338a35cc3899c1dc9
Size (hsetroot-1.0.2.tar.gz) = 125535 bytes
+SHA1 (patch-aa) = 72abcf8b764bd9b9109915da7da3a370f274bdf3
diff --git a/x11/hsetroot/patches/patch-aa b/x11/hsetroot/patches/patch-aa
new file mode 100644
index 00000000000..b03d5b74fe1
--- /dev/null
+++ b/x11/hsetroot/patches/patch-aa
@@ -0,0 +1,19 @@
+$NetBSD: patch-aa,v 1.1 2005/07/25 03:14:09 kristerw Exp $
+
+--- src/hsetroot.c.orig Mon Jul 25 04:56:26 2005
++++ src/hsetroot.c Mon Jul 25 04:57:46 2005
+@@ -179,11 +179,12 @@
+ if (alpha < 255)
+ {
+ // Create alpha-override mask
++ Imlib_Color_Modifier modifier;
++ DATA8 red[256], green[256], blue[256], alph[256];
+ imlib_image_set_has_alpha (1);
+- Imlib_Color_Modifier modifier = imlib_create_color_modifier ();
++ modifier = imlib_create_color_modifier ();
+ imlib_context_set_color_modifier (modifier);
+
+- DATA8 red[256], green[256], blue[256], alph[256];
+ imlib_get_color_modifier_tables (red, green, blue, alph);
+ for (o = 0; o < 256; o++)
+ alph[o] = (DATA8) alpha;