Skip to content

Commit 684f067

Browse files
kernighraffienficiaud
authored andcommitted
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.
1 parent 3c0c20b commit 684f067

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

include/boost/test/impl/execution_monitor.ipp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -391,14 +391,19 @@ system_signal_exception::report() const
391391
report_error( execution_exception::system_error,
392392
"signal: the expiration of a timer set by timer_settimer()" );
393393
break;
394+
// OpenBSD was missing SI_ASYNCIO and SI_MESGQ
395+
#ifdef SI_ASYNCIO
394396
case SI_ASYNCIO:
395397
report_error( execution_exception::system_error,
396398
"signal: generated by the completion of an asynchronous I/O request" );
397399
break;
400+
#endif
401+
#ifdef SI_MESGQ
398402
case SI_MESGQ:
399403
report_error( execution_exception::system_error,
400404
"signal: generated by the the arrival of a message on an empty message queue" );
401405
break;
406+
#endif
402407
default:
403408
break;
404409
}

0 commit comments

Comments
 (0)