--- ./libsigc++-2.2.0/sigc++/signal.h.ori	2008-02-28 11:27:44.711328000 +0800
+++ ./libsigc++-2.2.0/sigc++/signal.h	2008-02-28 11:32:03.403395000 +0800
@@ -777,7 +777,12 @@
       signal_exec exec(impl);
       temp_slot_list slots(impl->slots_);
 
+#ifndef SIGC_HAVE_SUN_REVERSE_ITERATOR
       typedef std::reverse_iterator<signal_impl::iterator_type> reverse_iterator_type;
+#else
+      typedef std::reverse_iterator<signal_impl::iterator_type, std::random_access_iterator_tag,
+                                     slot_base, slot_base&, slot_base*, ptrdiff_t> reverse_iterator_type;
+#endif
       for (reverse_iterator_type it = reverse_iterator_type(slots.end()); it != reverse_iterator_type(slots.begin()); ++it)
         {
           if (it->empty() || it->blocked())
--- ./libsigc++-2.2.0/tests/test_accum_iter.cc.ori	2008-02-28 11:11:13.568351000 +0800
+++ ./libsigc++-2.2.0/tests/test_accum_iter.cc	2008-02-28 14:06:01.250219000 +0800
@@ -17,7 +17,11 @@
     typedef T result_type;
 
     template<class I>
+#ifndef SIGC_HAVE_SUN_REVERSE_ITERATOR    
         typename std::iterator_traits<I>::value_type operator()(I i1, I i2)
+#else
+        typename I::value_type operator()(I i1, I i2)
+#endif        
         {
             return *std::min_element(i1, i2);
         }
