diff options
author | mi <mi@FreeBSD.org> | 2018-01-21 10:17:59 +0800 |
---|---|---|
committer | Koop Mast <kwm@rainbow-runner.nl> | 2018-02-04 06:27:08 +0800 |
commit | 1ac81506c88ac7f310ba9249b856e78422d8a095 (patch) | |
tree | eb50a7f77eb22c27c760293b355d7957beab8130 /net | |
parent | 0703a7d6491c7c029285895d7449ed35bd44793e (diff) | |
download | freebsd-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.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; |