svn commit: r433662 - in head/audio/zinf: . files
Jan Beich
jbeich at FreeBSD.org
Wed Feb 8 18:08:32 UTC 2017
Author: jbeich
Date: Wed Feb 8 18:08:31 2017
New Revision: 433662
URL: https://svnweb.freebsd.org/changeset/ports/433662
Log:
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)
Modified:
head/audio/zinf/Makefile (contents, props changed)
head/audio/zinf/files/patch-base_src_player.cpp (contents, props changed)
Modified: head/audio/zinf/Makefile
==============================================================================
--- head/audio/zinf/Makefile Wed Feb 8 18:06:46 2017 (r433661)
+++ head/audio/zinf/Makefile Wed Feb 8 18:08:31 2017 (r433662)
@@ -3,7 +3,7 @@
PORTNAME= zinf
PORTVERSION= 2.2.5
-PORTREVISION= 21
+PORTREVISION= 22
CATEGORIES= audio ipv6
MASTER_SITES= SF
Modified: head/audio/zinf/files/patch-base_src_player.cpp
==============================================================================
--- head/audio/zinf/files/patch-base_src_player.cpp Wed Feb 8 18:06:46 2017 (r433661)
+++ head/audio/zinf/files/patch-base_src_player.cpp Wed Feb 8 18:08:31 2017 (r433662)
@@ -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());
+ }
}
More information about the svn-ports-all
mailing list