aboutsummaryrefslogtreecommitdiff
path: root/depends/patches
diff options
context:
space:
mode:
authorfanquake <fanquake@gmail.com>2022-01-07 13:16:30 +0800
committerfanquake <fanquake@gmail.com>2022-02-10 12:33:10 +0000
commit471d15536f12889077578884fca33d1b0930fd66 (patch)
tree20b3fba56b89048479b7215c7377bf82e9ee6f05 /depends/patches
parent75ae39eeec22e56c92f1241ff2ae87ad9a974625 (diff)
downloadbitcoin-471d15536f12889077578884fca33d1b0930fd66.tar.xz
build: add support for OpenBSD to depends
Diffstat (limited to 'depends/patches')
-rw-r--r--depends/patches/boost/fix_openbsd_test_lib.patch38
1 files changed, 38 insertions, 0 deletions
diff --git a/depends/patches/boost/fix_openbsd_test_lib.patch b/depends/patches/boost/fix_openbsd_test_lib.patch
new file mode 100644
index 0000000000..84351065a3
--- /dev/null
+++ b/depends/patches/boost/fix_openbsd_test_lib.patch
@@ -0,0 +1,38 @@
+commit 684f067dde3b798877655cdda4eab8d7c26b2510
+Author: George Koehler <kernigh@gmail.com>
+Date: Thu Oct 3 20:06:38 2019 -0400
+
+ OpenBSD is missing SI_ASYNCIO and SI_MESGQ
+
+ Check if SI_ASYNCIO and SI_MESGQ are defined as macros. This allows
+ to run tests on OpenBSD 6.5, where the macros are missing.
+
+ This is identical to patch-boost_test_impl_execution_monitor_ipp in
+ OpenBSD Ports, except that I added a comment.
+
+ Can be removed when we use Boost 1.72.x or later.
+
+diff --git a/boost/test/impl/execution_monitor.ipp b/boost/test/impl/execution_monitor.ipp
+index ccc44972..77a01e21 100644
+--- a/boost/test/impl/execution_monitor.ipp
++++ b/boost/test/impl/execution_monitor.ipp
+@@ -391,14 +391,19 @@ system_signal_exception::report() const
+ report_error( execution_exception::system_error,
+ "signal: the expiration of a timer set by timer_settimer()" );
+ break;
++// OpenBSD was missing SI_ASYNCIO and SI_MESGQ
++#ifdef SI_ASYNCIO
+ case SI_ASYNCIO:
+ report_error( execution_exception::system_error,
+ "signal: generated by the completion of an asynchronous I/O request" );
+ break;
++#endif
++#ifdef SI_MESGQ
+ case SI_MESGQ:
+ report_error( execution_exception::system_error,
+ "signal: generated by the the arrival of a message on an empty message queue" );
+ break;
++#endif
+ default:
+ break;
+ }