diff options
author | tobik <tobik@FreeBSD.org> | 2019-05-07 04:57:58 +0800 |
---|---|---|
committer | tobik <tobik@FreeBSD.org> | 2019-05-07 04:57:58 +0800 |
commit | 4a2f2e21bbd7f8c48dd58f61655351a0c9cbc6a0 (patch) | |
tree | 0099855ce02739acf0d1845b4e20f2df4f352500 /benchmarks/postal | |
parent | 035e6eec0eb7e2391ee811d659f3940c9c919007 (diff) | |
download | freebsd-ports-gnome-4a2f2e21bbd7f8c48dd58f61655351a0c9cbc6a0.tar.gz freebsd-ports-gnome-4a2f2e21bbd7f8c48dd58f61655351a0c9cbc6a0.tar.zst freebsd-ports-gnome-4a2f2e21bbd7f8c48dd58f61655351a0c9cbc6a0.zip |
benchmarks/postal: Unbreak on CURRENT
tcp.cpp:135:10: error: assigning to 'int' from incompatible type '__bind<int &, sockaddr *&, unsigned long>'
rc = bind(m_fd, source, sizeof(struct sockaddr_in));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
http://beefy12.nyi.freebsd.org/data/head-amd64-default/p500844_s347134/logs/errors/postal-0.73_3.log
Diffstat (limited to 'benchmarks/postal')
-rw-r--r-- | benchmarks/postal/files/patch-tcp.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/benchmarks/postal/files/patch-tcp.cpp b/benchmarks/postal/files/patch-tcp.cpp index 90d56bb47c30..66f5157bdd8b 100644 --- a/benchmarks/postal/files/patch-tcp.cpp +++ b/benchmarks/postal/files/patch-tcp.cpp @@ -1,5 +1,14 @@ --- tcp.cpp.orig 2012-01-01 11:24:45 UTC +++ tcp.cpp +@@ -132,7 +132,7 @@ int tcp::Connect(short port) + { + sockaddr *source; + source = (sockaddr *)m_sourceAddr->get_rand_addr(); +- rc = bind(m_fd, source, sizeof(struct sockaddr_in)); ++ rc = ::bind(m_fd, source, sizeof(struct sockaddr_in)); + if(rc) + { + fprintf(stderr, "Can't bind to port.\n"); @@ -178,10 +178,18 @@ int tcp::ConnectTLS() #ifdef USE_OPENSSL m_sslCtx = NULL; |