Skip to content

Commit

Permalink
Check for MSG_NOSIGNAL instead of WINDOWS
Browse files Browse the repository at this point in the history
This resolves a build failure on macOS 10.15.

Related: Homebrew/homebrew-core#73923
  • Loading branch information
carlocab committed Mar 25, 2021
1 parent 9126237 commit 43f8713
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 43f8713

Please sign in to comment.