mirror of
https://github.com/zeromq/libzmq.git
synced 2025-10-26 10:32:58 +01:00
problem: compilation error on osx
This commit is contained in:
@@ -987,8 +987,10 @@ bool zmq::stream_engine_t::init_properties (properties_t & properties) {
|
|||||||
properties.insert (std::make_pair("Peer-Address", peer_address));
|
properties.insert (std::make_pair("Peer-Address", peer_address));
|
||||||
|
|
||||||
// Private property to support deprecated SRCFD
|
// Private property to support deprecated SRCFD
|
||||||
std::string fd_string = static_cast<std::ostringstream*>(&(std::ostringstream() << (int)s))->str();
|
std::ostringstream stream;
|
||||||
properties.insert (std::make_pair("__fd", fd_string));
|
stream << (int)s;
|
||||||
|
std::string fd_string = stream.str();
|
||||||
|
properties.insert(std::make_pair("__fd", fd_string));
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user