summaryrefslogtreecommitdiff
path: root/games/xfrisk/patches
diff options
context:
space:
mode:
authordholland <dholland>2010-11-13 00:08:55 +0000
committerdholland <dholland>2010-11-13 00:08:55 +0000
commita80a0dd2c9196ada92914090b095ca219f29ed39 (patch)
tree572818047b4b2adfe8e7bae3d3df93cf329746c6 /games/xfrisk/patches
parent8fe996bcd19856ef56fb1218f0ec53b7dd585c28 (diff)
downloadpkgsrc-a80a0dd2c9196ada92914090b095ca219f29ed39.tar.gz
Fix crash on LP64 platforms, caused by improper mixing of integer types
and no type safety in XtVa[GS]etValues(). PKGREVISION <- 6
Diffstat (limited to 'games/xfrisk/patches')
-rw-r--r--games/xfrisk/patches/patch-ae26
1 files changed, 26 insertions, 0 deletions
diff --git a/games/xfrisk/patches/patch-ae b/games/xfrisk/patches/patch-ae
new file mode 100644
index 00000000000..a9c64586435
--- /dev/null
+++ b/games/xfrisk/patches/patch-ae
@@ -0,0 +1,26 @@
+$NetBSD: patch-ae,v 1.1 2010/11/13 00:08:56 dholland Exp $
+
+Fix crash on 64-bit platforms. (Pixel is an X typedef for "long".)
+
+--- registerPlayers.c~ 2000-01-10 22:47:41.000000000 +0000
++++ registerPlayers.c
+@@ -73,8 +73,8 @@ static XtActionsRec actionTable[] =
+ { NULL, NULL }
+ };
+
+-static Int32 piPositionToPlayer[MAX_PLAYERS];
+-static Int32 iSelectColor, iUnselectColor;
++static Pixel piPositionToPlayer[MAX_PLAYERS];
++static Pixel iSelectColor, iUnselectColor;
+ static Cursor normalCursor, handCursor;
+
+ static Widget wRegisterShell, wRegisterForm, wPlayerViewport, wPlayerForm;
+@@ -645,7 +645,7 @@ void REG_RenderSlot(Int32 iSlot, Int32 i
+ ************************************************************************/
+ Flag REG_IsSelected(Int32 iSlot)
+ {
+- Int32 iBorderColor;
++ Pixel iBorderColor;
+
+ /* If out of bounds then call it unselected */
+ if (iSlot<0 || iSlot>=MAX_PLAYERS)