aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorjbeich <jbeich@FreeBSD.org>2018-01-06 22:19:22 +0800
committerjbeich <jbeich@FreeBSD.org>2018-01-06 22:19:22 +0800
commitc08666855bfc45438c481e1a9f4d2a1cbadfa277 (patch)
treedbc89ee83ad310d994ec2869be48ece89c4b06dd /net
parent1b1f6aa69a1f963a14c27dc3bee2d6babb20e78a (diff)
downloadfreebsd-ports-gnome-c08666855bfc45438c481e1a9f4d2a1cbadfa277.tar.gz
freebsd-ports-gnome-c08666855bfc45438c481e1a9f4d2a1cbadfa277.tar.zst
freebsd-ports-gnome-c08666855bfc45438c481e1a9f4d2a1cbadfa277.zip
net/xmlrpc-c: unbreak build with Clang 6 (C++14 by default)
server_abyss.cpp:88:14: error: assigning to 'int' from incompatible type '__bind<int &, sockaddr *, unsigned long>' rc = bind(this->fd, (struct sockaddr *)&sockAddr, sizeof(sockAddr)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Reported by: antoine (via bug 224669)
Diffstat (limited to 'net')
-rw-r--r--net/xmlrpc-c/files/patch-test_cpp_server__abyss.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/net/xmlrpc-c/files/patch-test_cpp_server__abyss.cpp b/net/xmlrpc-c/files/patch-test_cpp_server__abyss.cpp
new file mode 100644
index 000000000000..1c10e8a608c4
--- /dev/null
+++ b/net/xmlrpc-c/files/patch-test_cpp_server__abyss.cpp
@@ -0,0 +1,18 @@
+libc++ doesn't like "using namespace std" in C++11
+
+server_abyss.cpp:88:14: error: assigning to 'int' from incompatible type '__bind<int &, sockaddr *,
+ unsigned long>'
+ rc = bind(this->fd, (struct sockaddr *)&sockAddr, sizeof(sockAddr));
+ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+--- test/cpp/server_abyss.cpp~ 2018-01-05 09:20:59.546269035 +0000
++++ test/cpp/server_abyss.cpp 2018-01-05 09:23:10.542713023 +0000
+@@ -85,7 +85,7 @@ class boundSocket { (public)
+ sockAddr.sin_port = htons(portNumber);
+ sockAddr.sin_addr.s_addr = 0;
+
+- rc = bind(this->fd, (struct sockaddr *)&sockAddr, sizeof(sockAddr));
++ rc = ::bind(this->fd, (struct sockaddr *)&sockAddr, sizeof(sockAddr));
+
+ if (rc != 0) {
+ closesock(this->fd);