50 lines
1.9 KiB
Plaintext
50 lines
1.9 KiB
Plaintext
$NetBSD: patch-aq,v 1.8 2015/08/14 07:54:04 adam Exp $
|
|
|
|
--- boost/test/impl/execution_monitor.ipp.orig 2015-07-21 21:41:49.000000000 +0000
|
|
+++ boost/test/impl/execution_monitor.ipp
|
|
@@ -163,7 +163,8 @@ namespace { void _set_se_translator( voi
|
|
# if defined(SIGPOLL) && !defined(__CYGWIN__) && \
|
|
!(defined(macintosh) || defined(__APPLE__) || defined(__APPLE_CC__)) && \
|
|
!defined(__NetBSD__) && \
|
|
- !defined(__QNXNTO__)
|
|
+ !defined(__QNXNTO__) && \
|
|
+ !defined(__DragonFly__)
|
|
# define BOOST_TEST_CATCH_SIGPOLL
|
|
# endif
|
|
|
|
@@ -368,6 +369,7 @@ system_signal_exception::report() const
|
|
if( !m_sig_info )
|
|
return; // no error actually occur?
|
|
|
|
+#if !defined(__DragonFly__)
|
|
switch( m_sig_info->si_code ) {
|
|
case SI_USER:
|
|
report_error( execution_exception::system_error,
|
|
@@ -382,14 +384,18 @@ system_signal_exception::report() const
|
|
report_error( execution_exception::system_error,
|
|
"signal: the expiration of a timer set by timer_settimer()" );
|
|
break;
|
|
+#if defined(SI_ASYNCIO)
|
|
case SI_ASYNCIO:
|
|
report_error( execution_exception::system_error,
|
|
"signal: generated by the completion of an asynchronous I/O request" );
|
|
break;
|
|
+#endif
|
|
+#if defined(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;
|
|
}
|
|
@@ -608,6 +614,7 @@ system_signal_exception::report() const
|
|
report_error( execution_exception::system_error,
|
|
"unrecognized signal %d", m_sig_info->si_signo );
|
|
}
|
|
+#endif /* !__DragonFly__ */
|
|
}
|
|
|
|
//____________________________________________________________________________//
|