mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 17:59:20 -04:00
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...
This commit is contained in:
parent
acbcdd0f31
commit
a06fd33c98
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=459564
1 changed files with 9 additions and 0 deletions
9
net/udt/files/patch-test.cpp
Normal file
9
net/udt/files/patch-test.cpp
Normal file
|
@ -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;
|
Loading…
Add table
Reference in a new issue