mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-16 07:58:04 +00:00
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)
This commit is contained in:
parent
3bedfb641b
commit
05b122ad1e
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=433662
@ -3,7 +3,7 @@
|
||||
|
||||
PORTNAME= zinf
|
||||
PORTVERSION= 2.2.5
|
||||
PORTREVISION= 21
|
||||
PORTREVISION= 22
|
||||
CATEGORIES= audio ipv6
|
||||
MASTER_SITES= SF
|
||||
|
||||
|
@ -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());
|
||||
+ }
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user