Skip to content

Commit

Permalink
Merge pull request #1382 from carlocab/msg_nosignal
Browse files Browse the repository at this point in the history
Check for MSG_NOSIGNAL instead of WINDOWS
  • Loading branch information
julianoes authored Mar 26, 2021
2 parents 9126237 + 43f8713 commit 7e6508b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/tcp_connection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ bool TcpConnection::send_message(const mavlink_message_t& message)
// TODO: remove this assert again
assert(buffer_len <= MAVLINK_MAX_PACKET_LEN);

#if defined(WINDOWS)
#if !defined(MSG_NOSIGNAL)
auto flags = 0;
#else
auto flags = MSG_NOSIGNAL;
Expand Down

0 comments on commit 7e6508b

Please sign in to comment.