From owner-svn-ports-all@freebsd.org Wed Feb 8 18:08:32 2017 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8459BCD6959; Wed, 8 Feb 2017 18:08:32 +0000 (UTC) (envelope-from jbeich@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 53AB11648; Wed, 8 Feb 2017 18:08:32 +0000 (UTC) (envelope-from jbeich@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v18I8VKM089818; Wed, 8 Feb 2017 18:08:31 GMT (envelope-from jbeich@FreeBSD.org) Received: (from jbeich@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v18I8VLu089816; Wed, 8 Feb 2017 18:08:31 GMT (envelope-from jbeich@FreeBSD.org) Message-Id: <201702081808.v18I8VLu089816@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: jbeich set sender to jbeich@FreeBSD.org using -f From: Jan Beich Date: Wed, 8 Feb 2017 18:08:31 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r433662 - in head/audio/zinf: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Feb 2017 18:08:32 -0000 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()); + } }