summaryrefslogtreecommitdiff
path: root/x11/qwspritefield
diff options
context:
space:
mode:
authortron <tron@pkgsrc.org>2001-10-12 20:02:27 +0000
committertron <tron@pkgsrc.org>2001-10-12 20:02:27 +0000
commitdd2739407f5d6b943a0f9f1247b8eafc3a1f4ebd (patch)
treec33a4fcd7ad1d650644821316c118ddd043f5758 /x11/qwspritefield
parent1e8724d8ff215889112ea81296fa9412a97fd8a4 (diff)
downloadpkgsrc-dd2739407f5d6b943a0f9f1247b8eafc3a1f4ebd.tar.gz
Fix build problem if new toolchain is used.
Diffstat (limited to 'x11/qwspritefield')
-rw-r--r--x11/qwspritefield/distinfo3
-rw-r--r--x11/qwspritefield/patches/patch-ab30
2 files changed, 32 insertions, 1 deletions
diff --git a/x11/qwspritefield/distinfo b/x11/qwspritefield/distinfo
index e6c77a0b000..9de5f737985 100644
--- a/x11/qwspritefield/distinfo
+++ b/x11/qwspritefield/distinfo
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.2 2001/04/19 11:07:43 skrll Exp $
+$NetBSD: distinfo,v 1.3 2001/10/12 20:02:27 tron Exp $
SHA1 (QwSpriteField1.6.tar.gz) = 44e55d8a2613eb33dbf1a2ad194e39159760f6d7
Size (QwSpriteField1.6.tar.gz) = 607801 bytes
SHA1 (patch-aa) = d0cb9816fd429d01b98e68269997e101b9c20216
+SHA1 (patch-ab) = 09e46d84f7d3ec29b1927bb96d27229eee832a76
diff --git a/x11/qwspritefield/patches/patch-ab b/x11/qwspritefield/patches/patch-ab
new file mode 100644
index 00000000000..9479d58a1c5
--- /dev/null
+++ b/x11/qwspritefield/patches/patch-ab
@@ -0,0 +1,30 @@
+$NetBSD: patch-ab,v 1.1 2001/10/12 20:02:28 tron Exp $
+
+--- QwSpriteField.cpp.orig Tue Dec 8 17:33:38 1998
++++ QwSpriteField.cpp Fri Oct 12 22:01:12 2001
+@@ -2648,9 +2648,23 @@
+
+ /* comparison routines for qsort */
+ static
+-int compare_ind(int *u, int *v) {return g_pt[*u].y() <= g_pt[*v].y() ? -1 : 1;}
++int compare_ind(const void *u0, const void *v0)
++{
++ const int *u, *v;
++
++ u = (const int *)u0;
++ v = (const int *)v0;
++ return g_pt[*u].y() <= g_pt[*v].y() ? -1 : 1;
++}
+ static
+-int compare_active(Edge *u, Edge *v) {return u->x <= v->x ? -1 : 1;}
++int compare_active(const void *u0, const void *v0)
++{
++ const Edge *u, *v;
++
++ u = (const Edge *)u0;
++ v = (const Edge *)v0;
++ return u->x <= v->x ? -1 : 1;
++}
+
+
+ bool QwPolygonalGraphic::scan(const QRect& win) const