From 7b5b1ba59f3f0130ca8dfe4f04564d3b53447a33 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sat, 30 Dec 2023 08:29:23 +1100 Subject: [PATCH] AP_HAL: fixed build without MSG_NOSIGNAL for older MacOSX --- libraries/AP_HAL/utility/Socket.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libraries/AP_HAL/utility/Socket.cpp b/libraries/AP_HAL/utility/Socket.cpp index b27a3195d0..363b144d67 100644 --- a/libraries/AP_HAL/utility/Socket.cpp +++ b/libraries/AP_HAL/utility/Socket.cpp @@ -29,6 +29,10 @@ #define CALL_PREFIX(x) ::x #endif +#ifndef MSG_NOSIGNAL +#define MSG_NOSIGNAL 0 +#endif + /* constructor */