Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 21 Jan 2018 02:18:00 +0000 (UTC)
From:      Mikhail Teterin <mi@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r459564 - head/net/udt/files
Message-ID:  <201801210218.w0L2I0rM046149@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mi
Date: Sun Jan 21 02:17:59 2018
New Revision: 459564
URL: https://svnweb.freebsd.org/changeset/ports/459564

Log:
  Add a patch to force using ::bind() instead of std::bind().
  
  Otherwise the latter "wins", when compiling with latest clang and
  -std=c++17, but its result can not be compared with the integer
  0 causing an error...

Added:
  head/net/udt/files/patch-test.cpp   (contents, props changed)

Added: head/net/udt/files/patch-test.cpp
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net/udt/files/patch-test.cpp	Sun Jan 21 02:17:59 2018	(r459564)
@@ -0,0 +1,9 @@
+--- app/test.cpp	2013-02-23 03:32:36
++++ app/test.cpp	2018-01-21 02:11:47
+@@ -88,5 +88,5 @@
+ 
+    ssock = socket(res->ai_family, res->ai_socktype, res->ai_protocol);
+-   if (bind(ssock, res->ai_addr, res->ai_addrlen) != 0)
++   if (::bind(ssock, res->ai_addr, res->ai_addrlen) != 0)
+    {
+       return -1;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201801210218.w0L2I0rM046149>