diff options
author | Riccardo Spagni <ric@spagni.net> | 2016-01-03 20:02:44 +0200 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2016-01-03 20:02:44 +0200 |
commit | 58dbc9d122b5274c8a67f0dc035efbb3943f7e5f (patch) | |
tree | d48ef6831c2e40f0ea09734ed7862c7f5620aa7b /contrib | |
parent | Merge pull request #595 (diff) | |
parent | ARMv7 optimization flags are too aggressive (diff) | |
download | monero-58dbc9d122b5274c8a67f0dc035efbb3943f7e5f.tar.xz |
fixed conflicts
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/epee/include/misc_log_ex.h | 2 | ||||
-rw-r--r-- | contrib/epee/include/net/abstract_tcp_server2.inl | 5 |
2 files changed, 5 insertions, 2 deletions
diff --git a/contrib/epee/include/misc_log_ex.h b/contrib/epee/include/misc_log_ex.h index b4ba4b7e8..d1451ff12 100644 --- a/contrib/epee/include/misc_log_ex.h +++ b/contrib/epee/include/misc_log_ex.h @@ -419,7 +419,7 @@ namespace log_space std::string buf(buffer, buffer_len); for(size_t i = 0; i!= buf.size(); i++) { - if(buf[i] == 7 || buf[i] == -107) + if(buf[i] == 7 || (buf[i]&0xff) == 0x95) buf[i] = '^'; } diff --git a/contrib/epee/include/net/abstract_tcp_server2.inl b/contrib/epee/include/net/abstract_tcp_server2.inl index 51c6f3501..5bf65d7fd 100644 --- a/contrib/epee/include/net/abstract_tcp_server2.inl +++ b/contrib/epee/include/net/abstract_tcp_server2.inl @@ -160,13 +160,16 @@ PRAGMA_WARNING_DISABLE_VS(4355) boost::bind(&connection<t_protocol_handler>::handle_read, self, boost::asio::placeholders::error, boost::asio::placeholders::bytes_transferred))); - +#if !defined(_WIN32) || !defined(__i686) + // not supported before Windows7, too lazy for runtime check + // Just exclude for 32bit windows builds //set ToS flag int tos = get_tos_flag(); boost::asio::detail::socket_option::integer< IPPROTO_IP, IP_TOS > optionTos( tos ); socket_.set_option( optionTos ); //_dbg1("Set ToS flag to " << tos); +#endif boost::asio::ip::tcp::no_delay noDelayOption(false); socket_.set_option(noDelayOption); |