aboutsummaryrefslogtreecommitdiffstats
path: root/audio
diff options
context:
space:
mode:
authorjbeich <jbeich@FreeBSD.org>2017-02-09 02:08:31 +0800
committerjbeich <jbeich@FreeBSD.org>2017-02-09 02:08:31 +0800
commit31736b36f96b8433428ec6d93dd5ef37df4b0e12 (patch)
treefd64517ce89d67db167655f9c2ff6f5332df7712 /audio
parent596207a87e103de0a589d144ecf4b4b2ed56c252 (diff)
downloadfreebsd-ports-gnome-31736b36f96b8433428ec6d93dd5ef37df4b0e12.tar.gz
freebsd-ports-gnome-31736b36f96b8433428ec6d93dd5ef37df4b0e12.tar.zst
freebsd-ports-gnome-31736b36f96b8433428ec6d93dd5ef37df4b0e12.zip
audio/zinf: unbreak with gcc5 or earlier after r433187
src/player.cpp: In member function 'void Player::HandlePrefsChanged(Event*)': src/player.cpp:1970:40: error: 'stoi' was not declared in this scope nPort = stoi(buffer.substr(pos)); ^ Reported by: marino Pointy hat to: jbeich (forgot libc++ leaks C++11)
Diffstat (limited to 'audio')
-rw-r--r--audio/zinf/Makefile2
-rw-r--r--audio/zinf/files/patch-base_src_player.cpp6
2 files changed, 4 insertions, 4 deletions
diff --git a/audio/zinf/Makefile b/audio/zinf/Makefile
index ff6f0f60fa7f..5f55ea3f655b 100644
--- a/audio/zinf/Makefile
+++ b/audio/zinf/Makefile
@@ -3,7 +3,7 @@
PORTNAME= zinf
PORTVERSION= 2.2.5
-PORTREVISION= 21
+PORTREVISION= 22
CATEGORIES= audio ipv6
MASTER_SITES= SF
diff --git a/audio/zinf/files/patch-base_src_player.cpp b/audio/zinf/files/patch-base_src_player.cpp
index 5a82a41bd214..6a341c47da0b 100644
--- a/audio/zinf/files/patch-base_src_player.cpp
+++ b/audio/zinf/files/patch-base_src_player.cpp
@@ -42,9 +42,9 @@
- nPort = atoi(port);
+ size_t pos = buffer.find(':');
+ if (pos != string::npos) {
-+ proxyAddr = buffer.substr(0, pos++);
-+ if (pos < buffer.size())
-+ nPort = stoi(buffer.substr(pos));
++ proxyAddr = buffer.substr(0, pos++);
++ if (pos < buffer.size())
++ nPort = atoi(buffer.substr(pos).c_str());
+ }
}