changeset 1781:22d367a6f8f2

* src/signal.cxx: place the CYGBLD_ATTRIB_INIT_PRI such that it compiles for gcc 3.4.2 which is more picky about its placement.
author asl
date Mon, 04 Oct 2004 11:49:19 +0000
parents 97ddf0e44c89
children 59df0967a02b
files packages/compat/posix/current/ChangeLog packages/compat/posix/current/src/signal.cxx
diffstat 2 files changed, 7 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/packages/compat/posix/current/ChangeLog
+++ b/packages/compat/posix/current/ChangeLog
@@ -1,3 +1,8 @@
+2004-10-01  Oyvind Harboe  <oyvind.harboe@zylin.com>
+
+	* src/signal.cxx:  place the CYGBLD_ATTRIB_INIT_PRI such that it
+	compiles for gcc 3.4.2 which is more picky about its placement.
+
 2003-12-02  Sandeep  <sandeep@codito.com>
 
 	* src/mqueue.cxx (new): define a placement new instead of using <new>
--- a/packages/compat/posix/current/src/signal.cxx
+++ b/packages/compat/posix/current/src/signal.cxx
@@ -131,7 +131,7 @@ Cyg_Mutex signal_mutex CYGBLD_POSIX_INIT
 
 // Condition variable for all threads in sigsuspend() and sigwait()
 // to wait on.
-Cyg_Condition_Variable signal_sigwait( signal_mutex ) CYGBLD_POSIX_INIT;
+Cyg_Condition_Variable CYGBLD_POSIX_INIT signal_sigwait( signal_mutex ) ;
 
 // Global pending signal set
 sigset_t sig_pending;
@@ -152,7 +152,7 @@ static signal_info *siginfo_next = NULL;
 static void sigalrm_action( Cyg_Alarm *alarm, CYG_ADDRWORD data );
 
 // Kernel alarm object
-static Cyg_Alarm sigalrm_alarm( Cyg_Clock::real_time_clock, sigalrm_action, 0 ) CYGBLD_POSIX_INIT;
+static Cyg_Alarm CYGBLD_POSIX_INIT sigalrm_alarm( Cyg_Clock::real_time_clock, sigalrm_action, 0 ) ;
 
 // Set true when alarm is armed
 volatile cyg_bool sigalrm_armed = false;