summaryrefslogtreecommitdiff
path: root/net/udt/files/patch-test.cpp
diff options
context:
space:
mode:
authorMikhail Teterin <mi@FreeBSD.org>2018-01-21 02:17:59 +0000
committerMikhail Teterin <mi@FreeBSD.org>2018-01-21 02:17:59 +0000
commita06fd33c98fa52b8ad05f4763e608abe5268d4d9 (patch)
tree26efe7e9e97acc0fbf7f1c3b35050b3fb85652a7 /net/udt/files/patch-test.cpp
parentMake compilable with latest clang and -std=c++17 (diff)
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...
Notes
Notes: svn path=/head/; revision=459564
Diffstat (limited to 'net/udt/files/patch-test.cpp')
-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;