diff options
author | tnn <tnn@pkgsrc.org> | 2022-04-25 13:49:49 +0000 |
---|---|---|
committer | tnn <tnn@pkgsrc.org> | 2022-04-25 13:49:49 +0000 |
commit | 7860ba846d264023e65c19867d4c676ee008f88b (patch) | |
tree | 713e2ae48e91d0ab8768c3447b5b6ee739c3e08b /audio | |
parent | 60b38feaf22a074eeb846462ad6c583e8a9f7f97 (diff) | |
download | pkgsrc-7860ba846d264023e65c19867d4c676ee008f88b.tar.gz |
libkeyfinder: avoid ambiguous pow(3)
Diffstat (limited to 'audio')
-rw-r--r-- | audio/libkeyfinder/distinfo | 3 | ||||
-rw-r--r-- | audio/libkeyfinder/patches/patch-src_windowfunctions.cpp | 15 |
2 files changed, 17 insertions, 1 deletions
diff --git a/audio/libkeyfinder/distinfo b/audio/libkeyfinder/distinfo index 661b0f87bbd..836bcd94381 100644 --- a/audio/libkeyfinder/distinfo +++ b/audio/libkeyfinder/distinfo @@ -1,5 +1,6 @@ -$NetBSD: distinfo,v 1.1 2021/11/20 18:09:45 nia Exp $ +$NetBSD: distinfo,v 1.2 2022/04/25 13:49:49 tnn Exp $ BLAKE2s (libkeyfinder-2.2.5.tar.gz) = 37abe2a1057e320df231cbfcceb0bd39fe8b58f12e1ce5a21cd962e3df5dc611 SHA512 (libkeyfinder-2.2.5.tar.gz) = 54463d1f1111dc474d3e43723fddd5579ea1a3842f99f43e50e85622a1d6ee6fe42b22c300ce5ba5807cf6b2d7067af741773af95974a42c5d863c53165893eb Size (libkeyfinder-2.2.5.tar.gz) = 79220 bytes +SHA1 (patch-src_windowfunctions.cpp) = f3eb1a4bd739fa41e56aecddde1ce85a745df5a6 diff --git a/audio/libkeyfinder/patches/patch-src_windowfunctions.cpp b/audio/libkeyfinder/patches/patch-src_windowfunctions.cpp new file mode 100644 index 00000000000..468c259570f --- /dev/null +++ b/audio/libkeyfinder/patches/patch-src_windowfunctions.cpp @@ -0,0 +1,15 @@ +$NetBSD: patch-src_windowfunctions.cpp,v 1.1 2022/04/25 13:49:49 tnn Exp $ + +Explicitly use std::pow, avoids ambiguous reference on SunOS. + +--- src/windowfunctions.cpp.orig 2021-07-17 22:04:12.000000000 +0000 ++++ src/windowfunctions.cpp +@@ -21,6 +21,8 @@ + + #include "windowfunctions.h" + ++using std::pow; ++ + namespace KeyFinder { + + double WindowFunction::window(temporal_window_t windowType, int n, int N) const { |