diff --git a/depends/packages/zeromq.mk b/depends/packages/zeromq.mk index 8bf84b1f1cb..ab10e6c2f6e 100644 --- a/depends/packages/zeromq.mk +++ b/depends/packages/zeromq.mk @@ -11,6 +11,7 @@ $(package)_patches += openbsd_kqueue_headers.patch $(package)_patches += cmake_minimum.patch $(package)_patches += cacheline_undefined.patch $(package)_patches += no_librt.patch +$(package)_patches += add_new_include.patch define $(package)_set_vars $(package)_config_opts := -DCMAKE_BUILD_TYPE=None -DWITH_DOCS=OFF -DWITH_LIBSODIUM=OFF @@ -28,7 +29,8 @@ define $(package)_preprocess_cmds patch -p1 < $($(package)_patch_dir)/fix_have_windows.patch && \ patch -p1 < $($(package)_patch_dir)/openbsd_kqueue_headers.patch && \ patch -p1 < $($(package)_patch_dir)/cmake_minimum.patch && \ - patch -p1 < $($(package)_patch_dir)/no_librt.patch + patch -p1 < $($(package)_patch_dir)/no_librt.patch && \ + patch -p1 < $($(package)_patch_dir)/add_new_include.patch endef define $(package)_config_cmds diff --git a/depends/patches/zeromq/add_new_include.patch b/depends/patches/zeromq/add_new_include.patch new file mode 100644 index 00000000000..0bf987f680e --- /dev/null +++ b/depends/patches/zeromq/add_new_include.patch @@ -0,0 +1,123 @@ +commit 2e8a6ccb414ca79636392604893c79c3b0d00dc4 +Author: MarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz> +Date: Sat Jul 4 09:11:11 2026 +0200 + + Add missing includes for std::nothrow + + Without the include, compilation may fail: + + ``` + src/polling_util.hpp:28:30: error: no member named 'nothrow' in namespace 'std' + 28 | _buf = new (std::nothrow) T[nitems_]; + | ^~~~~~~ + ``` + +diff --git a/src/norm_engine.cpp b/src/norm_engine.cpp +index 1e3ae179..02483f0b 100644 +--- a/src/norm_engine.cpp ++++ b/src/norm_engine.cpp +@@ -1,6 +1,7 @@ + + #include "precompiled.hpp" + ++#include + #include "platform.hpp" + + #if defined ZMQ_HAVE_NORM +diff --git a/src/polling_util.hpp b/src/polling_util.hpp +index 13a4911f..3536be9a 100644 +--- a/src/polling_util.hpp ++++ b/src/polling_util.hpp +@@ -4,6 +4,7 @@ + #define __ZMQ_SOCKET_POLLING_UTIL_HPP_INCLUDED__ + + #include ++#include + #include + + #if defined ZMQ_HAVE_WINDOWS +diff --git a/src/proxy.cpp b/src/proxy.cpp +index 78d6ba61..85e4db4a 100644 +--- a/src/proxy.cpp ++++ b/src/proxy.cpp +@@ -3,6 +3,7 @@ + #include "precompiled.hpp" + + #include ++#include + #include "poller.hpp" + #include "proxy.hpp" + #include "likely.hpp" +diff --git a/src/reaper.cpp b/src/reaper.cpp +index 4361a7e9..1484a926 100644 +--- a/src/reaper.cpp ++++ b/src/reaper.cpp +@@ -2,6 +2,7 @@ + + #include "precompiled.hpp" + #include "macros.hpp" ++#include + #include "reaper.hpp" + #include "socket_base.hpp" + #include "err.hpp" +diff --git a/src/session_base.cpp b/src/session_base.cpp +index 5a81b076..618443d5 100644 +--- a/src/session_base.cpp ++++ b/src/session_base.cpp +@@ -1,6 +1,7 @@ + /* SPDX-License-Identifier: MPL-2.0 */ + + #include "precompiled.hpp" ++#include + #include "macros.hpp" + #include "session_base.hpp" + #include "i_engine.hpp" +diff --git a/src/socket_poller.cpp b/src/socket_poller.cpp +index b5c330e8..3feb452e 100644 +--- a/src/socket_poller.cpp ++++ b/src/socket_poller.cpp +@@ -7,6 +7,7 @@ + #include "macros.hpp" + + #include ++#include + + static bool is_thread_safe (const zmq::socket_base_t &socket_) + { +diff --git a/src/stream_connecter_base.cpp b/src/stream_connecter_base.cpp +index 8dd9a6d6..6b733b4d 100644 +--- a/src/stream_connecter_base.cpp ++++ b/src/stream_connecter_base.cpp +@@ -15,6 +15,7 @@ + #endif + + #include ++#include + + zmq::stream_connecter_base_t::stream_connecter_base_t ( + zmq::io_thread_t *io_thread_, +diff --git a/src/stream_listener_base.cpp b/src/stream_listener_base.cpp +index 350093ad..b4e02027 100644 +--- a/src/stream_listener_base.cpp ++++ b/src/stream_listener_base.cpp +@@ -13,6 +13,8 @@ + #include + #endif + ++#include ++ + zmq::stream_listener_base_t::stream_listener_base_t ( + zmq::io_thread_t *io_thread_, + zmq::socket_base_t *socket_, +diff --git a/src/ws_engine.cpp b/src/ws_engine.cpp +index 9eec0d92..55590cdc 100644 +--- a/src/ws_engine.cpp ++++ b/src/ws_engine.cpp +@@ -26,6 +26,7 @@ + #endif + + #include ++#include + + #include "compat.hpp" + #include "tcp.hpp"