pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/games/exchess exchess: avoid ambiguous math functions



details:   https://anonhg.NetBSD.org/pkgsrc/rev/c6a60e46f85a
branches:  trunk
changeset: 377936:c6a60e46f85a
user:      tnn <tnn%pkgsrc.org@localhost>
date:      Mon Apr 25 13:53:15 2022 +0000

description:
exchess: avoid ambiguous math functions

diffstat:

 games/exchess/distinfo                  |   3 ++-
 games/exchess/patches/patch-src_smp.cpp |  15 +++++++++++++++
 2 files changed, 17 insertions(+), 1 deletions(-)

diffs (30 lines):

diff -r 5114b9fc3ceb -r c6a60e46f85a games/exchess/distinfo
--- a/games/exchess/distinfo    Mon Apr 25 13:49:49 2022 +0000
+++ b/games/exchess/distinfo    Mon Apr 25 13:53:15 2022 +0000
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.15 2021/10/26 10:43:56 nia Exp $
+$NetBSD: distinfo,v 1.16 2022/04/25 13:53:15 tnn Exp $
 
 BLAKE2s (EXchess_v7.97beta.zip) = 52928b5eee629915db502864ecce875e5a0b03d1c1c22aec8f51d3e57065e543
 SHA512 (EXchess_v7.97beta.zip) = 33e909bf2f39996e579c16ba2752f6d8d1c0d3c7e788c95be7fa8bc8b8ef67d3792693b28d3f73e52fb3f45bffbc5c9ccb0cf7a5fb27f70bb154de7e93f7df86
 Size (EXchess_v7.97beta.zip) = 1759660 bytes
+SHA1 (patch-src_smp.cpp) = cf2894493295ec16b1ae3620d3b26cbc520100ca
diff -r 5114b9fc3ceb -r c6a60e46f85a games/exchess/patches/patch-src_smp.cpp
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/games/exchess/patches/patch-src_smp.cpp   Mon Apr 25 13:53:15 2022 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-src_smp.cpp,v 1.1 2022/04/25 13:53:15 tnn Exp $
+
+Explicitly use std::sqrt, avoids ambiguous reference on SunOS.
+
+--- src/smp.cpp.orig   2017-02-04 14:23:32.000000000 +0000
++++ src/smp.cpp
+@@ -14,6 +14,8 @@
+ #include "chess.h"
+ #include "search.h"
+ 
++using std::sqrt;
++
+ //-----------------------------------------------
+ // Global variables to control SMP search
+ //-----------------------------------------------



Home | Main Index | Thread Index | Old Index