summaryrefslogtreecommitdiff
path: root/audio
diff options
context:
space:
mode:
authorsbd <sbd@pkgsrc.org>2013-03-31 08:18:58 +0000
committersbd <sbd@pkgsrc.org>2013-03-31 08:18:58 +0000
commiteeb6ae81036b24824749f940e5ffc3ac0d1db8ba (patch)
tree2a17f823e8d69ab3567e7574cbf9663d29cc57fc /audio
parent583460344d781211d14307bf2f9d172f8b46ebf7 (diff)
downloadpkgsrc-eeb6ae81036b24824749f940e5ffc3ac0d1db8ba.tar.gz
Include cstdio for std::sprintf.
Diffstat (limited to 'audio')
-rw-r--r--audio/bmpx/distinfo3
-rw-r--r--audio/bmpx/patches/patch-src_uri.cc21
2 files changed, 23 insertions, 1 deletions
diff --git a/audio/bmpx/distinfo b/audio/bmpx/distinfo
index baecb86e3d8..cafcc3df7f5 100644
--- a/audio/bmpx/distinfo
+++ b/audio/bmpx/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.18 2013/03/28 21:43:05 joerg Exp $
+$NetBSD: distinfo,v 1.19 2013/03/31 08:18:58 sbd Exp $
SHA1 (bmpx-0.40.14.tar.bz2) = 3284843c45cab302f414663a5cb31eb4373d07c7
RMD160 (bmpx-0.40.14.tar.bz2) = 12a9939d53b58a43ee9deefa43188ac6b33dae72
@@ -33,5 +33,6 @@ SHA1 (patch-src_shell.cc) = f428d07ddbadf33fd9666b4b8e1bf757cb21a5aa
SHA1 (patch-src_shell_hh) = b799ea9358b182ccc40c9c104be8fd6548b4c9dc
SHA1 (patch-src_ui-part-cdda.hh) = 748a43c39ca720009af14affac6eb0b3b658e041
SHA1 (patch-src_ui-part-podcasts_hh) = 0b73330a4ae7e3bd7d3b6d84817482916ee291ea
+SHA1 (patch-src_uri.cc) = 4fe811e8bebbabc61ef88ab2db2d0c2b8a5a2c61
SHA1 (patch-src_urihandler_hh) = 01f4ecf27e351553ec7259deb88e91dbd1d9fd0e
SHA1 (patch-src_util-file.cc) = e5a6eb49dc26670fae6388d8ad8476afb9d56f90
diff --git a/audio/bmpx/patches/patch-src_uri.cc b/audio/bmpx/patches/patch-src_uri.cc
new file mode 100644
index 00000000000..6a6610d834a
--- /dev/null
+++ b/audio/bmpx/patches/patch-src_uri.cc
@@ -0,0 +1,21 @@
+$NetBSD: patch-src_uri.cc,v 1.1 2013/03/31 08:18:58 sbd Exp $
+
+--- src/uri.cc.orig 2008-04-05 23:49:24.000000000 +0000
++++ src/uri.cc
+@@ -40,6 +40,7 @@
+ #include <glibmm.h>
+ #include <iostream>
+ #include <cstring>
++#include <cstdio>
+
+ #include "debug.hh"
+ #include "uri.hh"
+@@ -227,7 +228,7 @@ char *path_escape(const char *path)
+ if (path_escape_ch(*pnt))
+ {
+ /* Escape it - %<hex><hex> */
+- sprintf(p, "%%%02x", (unsigned char) *pnt);
++ std::sprintf(p, "%%%02x", (unsigned char) *pnt);
+ p += 3;
+ } else {
+ *p++ = *pnt;