--- boost/test/impl/execution_monitor.ipp.orig	2008-09-15 04:30:57 +0300
+++ boost/test/impl/execution_monitor.ipp	2008-09-16 09:35:04 +0300
@@ -139,7 +139,7 @@ namespace { void _set_se_translator( voi
 #   define BOOST_TEST_USE_ALT_STACK
 #  endif
 
-#  if !defined(__CYGWIN__) && !(defined(macintosh) || defined(__APPLE__) || defined(__APPLE_CC__))
+#  if !defined(__CYGWIN__) && !(defined(macintosh) || defined(__APPLE__) || defined(__APPLE_CC__)) && !defined(__NetBSD__) && !defined(__DragonFly__)
 #    define BOOST_TEST_CATCH_SIGPOLL
 #  endif
 
@@ -249,6 +249,7 @@ system_signal_exception::report() const
     if( !m_sig_info )
         return; // no error actually occur?
 
+#if !defined(__DragonFly__)
     if( m_sig_info->si_code <= 0 ) {
         switch( m_sig_info->si_code ) {
         case SI_USER:
@@ -489,6 +490,7 @@ system_signal_exception::report() const
             report_error( execution_exception::system_error, "unrecognized signal" );
         }
     }
+#endif /* !__DragonFly__ */
 }
 
 //____________________________________________________________________________//
