diff options
author | tnn <tnn@pkgsrc.org> | 2022-04-25 13:53:15 +0000 |
---|---|---|
committer | tnn <tnn@pkgsrc.org> | 2022-04-25 13:53:15 +0000 |
commit | 3be595258bd59bb79913e056b23952c50096375a (patch) | |
tree | b486caa2df067dcf6001879b6feeb09ee703b302 /games/exchess/patches | |
parent | 7860ba846d264023e65c19867d4c676ee008f88b (diff) | |
download | pkgsrc-3be595258bd59bb79913e056b23952c50096375a.tar.gz |
exchess: avoid ambiguous math functions
Diffstat (limited to 'games/exchess/patches')
-rw-r--r-- | games/exchess/patches/patch-src_smp.cpp | 15 |
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 + //----------------------------------------------- |