From 43f8713d3793955d6fe4793592e81b5a1f998439 Mon Sep 17 00:00:00 2001 From: Carlo Cabrera <30379873+carlocab@users.noreply.github.com> Date: Thu, 25 Mar 2021 19:28:19 +0000 Subject: [PATCH] Check for MSG_NOSIGNAL instead of WINDOWS This resolves a build failure on macOS 10.15. Related: https://github.com/Homebrew/homebrew-core/pull/73923 --- src/core/tcp_connection.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/tcp_connection.cpp b/src/core/tcp_connection.cpp index 5b87545b87..708903dea2 100644 --- a/src/core/tcp_connection.cpp +++ b/src/core/tcp_connection.cpp @@ -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;