From 138ffccf38d35f570e2d8857702482818a0f8377 Mon Sep 17 00:00:00 2001 From: joerg Date: Tue, 10 Mar 2015 13:59:29 +0000 Subject: Fix build on ARM. --- games/warmux/distinfo | 3 ++- games/warmux/patches/patch-lib_fixedpoint_fixed__class.h | 13 +++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 games/warmux/patches/patch-lib_fixedpoint_fixed__class.h (limited to 'games') diff --git a/games/warmux/distinfo b/games/warmux/distinfo index eff050f51e4..03c47794fe7 100644 --- a/games/warmux/distinfo +++ b/games/warmux/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.3 2013/04/29 21:31:10 joerg Exp $ +$NetBSD: distinfo,v 1.4 2015/03/10 13:59:29 joerg Exp $ SHA1 (warmux-11.01.tar.bz2) = 18e5d5bf144f069405c75ff8fe51296d9a7871a5 RMD160 (warmux-11.01.tar.bz2) = 85a7bbfed5ca2ccbd793a12d7ea548948a747a88 @@ -6,6 +6,7 @@ Size (warmux-11.01.tar.bz2) = 110379327 bytes SHA1 (patch-aa) = 163449e2cc6fadede8ce1a77bee08fcda59a0f0f SHA1 (patch-ab) = 48893791c36ae88b3fc5f565a39d3de786bc88d4 SHA1 (patch-ac) = 24179b2ccdc2dc2dc6c95c33f12b7e55bb6f5a6e +SHA1 (patch-lib_fixedpoint_fixed__class.h) = 7c13bb8e5b9377ddc91bb9d2aabdefb907901593 SHA1 (patch-lib_warmux_action_action.cpp) = 8a1138902c4fb8fbff4fddac4975fe352b532eca SHA1 (patch-lib_warmux_base_i18n.cpp) = 130fa3617f5549e9c47dcd907c33a54f0b19fcda SHA1 (patch-tools_list__games_main.cpp) = 0577d2e2cc073ba7d8efdce567138eb43bc535f4 diff --git a/games/warmux/patches/patch-lib_fixedpoint_fixed__class.h b/games/warmux/patches/patch-lib_fixedpoint_fixed__class.h new file mode 100644 index 00000000000..782002fe5c3 --- /dev/null +++ b/games/warmux/patches/patch-lib_fixedpoint_fixed__class.h @@ -0,0 +1,13 @@ +$NetBSD: patch-lib_fixedpoint_fixed__class.h,v 1.1 2015/03/10 13:59:29 joerg Exp $ + +--- lib/fixedpoint/fixed_class.h.orig 2015-03-09 22:46:53.000000000 +0000 ++++ lib/fixedpoint/fixed_class.h +@@ -77,7 +77,7 @@ struct fixed_point { + /*explicit*/ fixed_point(float f) : intValue(float2fix

(f)) {} + /*explicit*/ fixed_point(double d) : intValue(float2fix

((float)d)) {} + /*explicit*/ fixed_point(unsigned int u) : intValue(((fixint_t)u) << p) {} +-#if LONG_MAX != INT_MAX ++#if SIZE_MAX != INT_MAX + /*explicit*/ fixed_point(size_t i) : intValue(((fixint_t)i) << p) {} + #endif + -- cgit v1.2.3