From owner-svn-ports-all@freebsd.org Fri Jan 26 15:17:03 2018 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 83FFAEDBA2B; Fri, 26 Jan 2018 15:17:03 +0000 (UTC) (envelope-from jbeich@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 362FC77AA5; Fri, 26 Jan 2018 15:17:03 +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 mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 3115E1D3FF; Fri, 26 Jan 2018 15:17:03 +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 w0QFH3V5024200; Fri, 26 Jan 2018 15:17:03 GMT (envelope-from jbeich@FreeBSD.org) Received: (from jbeich@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w0QFH3r8024199; Fri, 26 Jan 2018 15:17:03 GMT (envelope-from jbeich@FreeBSD.org) Message-Id: <201801261517.w0QFH3r8024199@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: jbeich set sender to jbeich@FreeBSD.org using -f From: Jan Beich Date: Fri, 26 Jan 2018 15:17:03 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r460008 - head/games/crack-attack/files X-SVN-Group: ports-head X-SVN-Commit-Author: jbeich X-SVN-Commit-Paths: head/games/crack-attack/files X-SVN-Commit-Revision: 460008 X-SVN-Commit-Repository: ports 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.25 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: Fri, 26 Jan 2018 15:17:03 -0000 Author: jbeich Date: Fri Jan 26 15:17:02 2018 New Revision: 460008 URL: https://svnweb.freebsd.org/changeset/ports/460008 Log: games/crack-attack: unbreak build with Clang 6 (C++14 by default) libc++ doesn't like "using namespace std" in C++11 Communicator.cxx:139:73: error: invalid operands to binary expression ('__bind' and 'int') if (bind(connection_socket, (sockaddr *) &address, sizeof(address)) < 0) { ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~ Reported by: pkg-fallout Approved by: portmgr blanket Added: head/games/crack-attack/files/patch-src_Communicator.cxx (contents, props changed) Added: head/games/crack-attack/files/patch-src_Communicator.cxx ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/games/crack-attack/files/patch-src_Communicator.cxx Fri Jan 26 15:17:02 2018 (r460008) @@ -0,0 +1,17 @@ +libc++ doesn't like "using namespace std" in C++11 + +Communicator.cxx:139:73: error: invalid operands to binary expression ('__bind' and 'int') + if (bind(connection_socket, (sockaddr *) &address, sizeof(address)) < 0) { + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~ + +--- src/Communicator.cxx.orig 2005-04-16 08:13:38 UTC ++++ src/Communicator.cxx +@@ -136,7 +136,7 @@ void Communicator::initialize ( int mode, int port, ch + address.sin_addr.s_addr = htonl(INADDR_ANY); + address.sin_port = htons(port); + +- if (bind(connection_socket, (sockaddr *) &address, sizeof(address)) < 0) { ++ if (::bind(connection_socket, (sockaddr *) &address, sizeof(address)) < 0) { + cerr << "Port " << port << " is busy." << endl; + exit(1); + }