try to fix boost asio
All checks were successful
BlockStorage/repertory_mac/pipeline/head This commit looks good
BlockStorage/repertory/pipeline/head This commit looks good

This commit is contained in:
2025-08-04 11:14:19 -05:00
parent ccb56485d8
commit e88d53760d

View File

@@ -49,6 +49,10 @@
#include "comm/curl/curl_shared.hpp" #include "comm/curl/curl_shared.hpp"
#endif // defined(PROJECT_ENABLE_CURL) #endif // defined(PROJECT_ENABLE_CURL)
#if defined(__APPLE__)
#include <csignal>
#endif // defined(__APPLE__)
namespace { namespace {
#if defined(PROJECT_ENABLE_CURL) #if defined(PROJECT_ENABLE_CURL)
bool curl_initialized{false}; bool curl_initialized{false};
@@ -67,6 +71,10 @@ namespace repertory {
auto project_initialize() -> bool { auto project_initialize() -> bool {
REPERTORY_USES_FUNCTION_NAME(); REPERTORY_USES_FUNCTION_NAME();
#if defined(__APPLE__)
std::signal(SIGPIPE, SIG_IGN);
#endif // defined(__APPLE__)
#if defined(PROJECT_REQUIRE_ALPINE) && !defined(PROJECT_IS_MINGW) #if defined(PROJECT_REQUIRE_ALPINE) && !defined(PROJECT_IS_MINGW)
{ {
static constexpr auto guard_size{4096U}; static constexpr auto guard_size{4096U};