aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authormi <mi@FreeBSD.org>2018-01-21 10:17:59 +0800
committerKoop Mast <kwm@rainbow-runner.nl>2018-02-04 06:27:08 +0800
commit1ac81506c88ac7f310ba9249b856e78422d8a095 (patch)
treeeb50a7f77eb22c27c760293b355d7957beab8130 /net
parent0703a7d6491c7c029285895d7449ed35bd44793e (diff)
downloadfreebsd-ports-gnome-1ac81506c88ac7f310ba9249b856e78422d8a095.tar.gz
freebsd-ports-gnome-1ac81506c88ac7f310ba9249b856e78422d8a095.tar.zst
freebsd-ports-gnome-1ac81506c88ac7f310ba9249b856e78422d8a095.zip
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...
Diffstat (limited to 'net')
-rw-r--r--net/udt/files/patch-test.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/net/udt/files/patch-test.cpp b/net/udt/files/patch-test.cpp
new file mode 100644
index 000000000000..d652e8e31c03
--- /dev/null
+++ b/net/udt/files/patch-test.cpp
@@ -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;