diff options
author | Jan Beich <jbeich@FreeBSD.org> | 2018-01-06 14:19:22 +0000 |
---|---|---|
committer | Jan Beich <jbeich@FreeBSD.org> | 2018-01-06 14:19:22 +0000 |
commit | 63a2fd7ee3a2acc752d6f7f2da7ca9427e64ace0 (patch) | |
tree | dbc89ee83ad310d994ec2869be48ece89c4b06dd /net/xmlrpc-c | |
parent | 04863adb7eb75628e434333ce07f026f20959493 (diff) | |
download | ports-63a2fd7ee3a2acc752d6f7f2da7ca9427e64ace0.tar.gz ports-63a2fd7ee3a2acc752d6f7f2da7ca9427e64ace0.zip |
Notes
Diffstat (limited to 'net/xmlrpc-c')
-rw-r--r-- | net/xmlrpc-c/files/patch-test_cpp_server__abyss.cpp | 18 |
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); |