diff options
author | mi <mi@FreeBSD.org> | 2018-01-21 10:17:59 +0800 |
---|---|---|
committer | mi <mi@FreeBSD.org> | 2018-01-21 10:17:59 +0800 |
commit | 3dd9f8d9d5f2177091fb5ba39e78bdb543bc98a4 (patch) | |
tree | 26efe7e9e97acc0fbf7f1c3b35050b3fb85652a7 /net | |
parent | 4061c1e2552a0276744b2ad7b76e1606784902ff (diff) | |
download | freebsd-ports-gnome-3dd9f8d9d5f2177091fb5ba39e78bdb543bc98a4.tar.gz freebsd-ports-gnome-3dd9f8d9d5f2177091fb5ba39e78bdb543bc98a4.tar.zst freebsd-ports-gnome-3dd9f8d9d5f2177091fb5ba39e78bdb543bc98a4.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.cpp | 9 |
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; |