pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/games/corewars corewars: remove inline keyword



details:   https://anonhg.NetBSD.org/pkgsrc/rev/480d9a5789f7
branches:  trunk
changeset: 390616:480d9a5789f7
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Sat Dec 24 14:24:34 2022 +0000

description:
corewars: remove inline keyword

hopefully fixes NetBSD 9 build

diffstat:

 games/corewars/distinfo                       |   3 ++-
 games/corewars/patches/patch-src_execute-cw.c |  15 +++++++++++++++
 2 files changed, 17 insertions(+), 1 deletions(-)

diffs (30 lines):

diff -r 0aecd3b7c683 -r 480d9a5789f7 games/corewars/distinfo
--- a/games/corewars/distinfo   Sat Dec 24 14:21:00 2022 +0000
+++ b/games/corewars/distinfo   Sat Dec 24 14:24:34 2022 +0000
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.7 2021/10/26 10:43:51 nia Exp $
+$NetBSD: distinfo,v 1.8 2022/12/24 14:24:34 wiz Exp $
 
 BLAKE2s (corewars-0.9.13.tar.gz) = 424ed84d33a26c31f44831556c8fa6688581b550502abeb607e427fd0c0e15ef
 SHA512 (corewars-0.9.13.tar.gz) = fe4194ac5efa7612a06d80c1218740de17a6dae6228f5e603074ab296f4a195adc68c0d8db5bbc9588947a536a9cfc208b411b024163adfe1cda072d05dd6a71
 Size (corewars-0.9.13.tar.gz) = 203874 bytes
+SHA1 (patch-src_execute-cw.c) = 4c4a76cd4bed4b2bfb7e93a44c9df91f880c90e3
diff -r 0aecd3b7c683 -r 480d9a5789f7 games/corewars/patches/patch-src_execute-cw.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/games/corewars/patches/patch-src_execute-cw.c     Sat Dec 24 14:24:34 2022 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-src_execute-cw.c,v 1.1 2022/12/24 14:24:34 wiz Exp $
+
+Avoid inline to fix build on NetBSD 9.
+
+--- src/execute-cw.c.orig      2000-03-30 20:21:34.000000000 +0000
++++ src/execute-cw.c
+@@ -86,7 +86,7 @@ inline int get_value (struct cw_operand 
+     }
+ }
+ 
+-inline int get_reference (struct cw_operand *o, int i, struct cell **ref)
++int get_reference (struct cw_operand *o, int i, struct cell **ref)
+ {
+   int j;
+ 



Home | Main Index | Thread Index | Old Index