mirror of
https://github.com/zeromq/libzmq.git
synced 2025-01-15 10:18:01 +08:00
problem: compilation error on osx
This commit is contained in:
parent
ba20f665ae
commit
e15da4b38c
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user