summaryrefslogtreecommitdiff
path: root/games/exchess/patches
diff options
context:
space:
mode:
authortnn <tnn@pkgsrc.org>2022-04-25 13:53:15 +0000
committertnn <tnn@pkgsrc.org>2022-04-25 13:53:15 +0000
commit3be595258bd59bb79913e056b23952c50096375a (patch)
treeb486caa2df067dcf6001879b6feeb09ee703b302 /games/exchess/patches
parent7860ba846d264023e65c19867d4c676ee008f88b (diff)
downloadpkgsrc-3be595258bd59bb79913e056b23952c50096375a.tar.gz
exchess: avoid ambiguous math functions
Diffstat (limited to 'games/exchess/patches')
-rw-r--r--games/exchess/patches/patch-src_smp.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/games/exchess/patches/patch-src_smp.cpp b/games/exchess/patches/patch-src_smp.cpp
new file mode 100644
index 00000000000..528870252ac
--- /dev/null
+++ b/games/exchess/patches/patch-src_smp.cpp
@@ -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
+ //-----------------------------------------------