Skip to content

Commit

Permalink
OpenBSD is missing SI_ASYNCIO and SI_MESGQ
Browse files Browse the repository at this point in the history
Check if macros 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.
  • Loading branch information
kernigh committed Oct 4, 2019
1 parent e112b88 commit ce1d8f8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions include/boost/test/impl/execution_monitor.ipp
Expand Up @@ -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;
}
Expand Down

0 comments on commit ce1d8f8

Please sign in to comment.