This is the mail archive of the ecos-patches@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

POSIX - fix test compile error


Index: compat/posix/current/ChangeLog
===================================================================
RCS file: /misc/cvsfiles/ecos/packages/compat/posix/current/ChangeLog,v
retrieving revision 1.35
diff -u -5 -p -r1.35 ChangeLog
--- compat/posix/current/ChangeLog	31 Jan 2003 11:53:14 -0000	1.35
+++ compat/posix/current/ChangeLog	10 Feb 2003 23:52:36 -0000
@@ -1,5 +1,9 @@
+2003-02-10  Gary Thomas  <gary@mlbassoc.com>
+
+	* tests/signal3.c (main): Reorg code so it builds with older GCC.
+
 2003-01-31  Nick Garnett  <nickg@calivar.com>
 
 	* src/time.cxx (alarm_action): Added call to
 	cyg_posix_signal_sigwait() to wake up any sigwait()ing threads.
 
Index: compat/posix/current/tests/signal3.c
===================================================================
RCS file: /misc/cvsfiles/ecos/packages/compat/posix/current/tests/signal3.c,v
retrieving revision 1.1
diff -u -5 -p -r1.1 signal3.c
--- compat/posix/current/tests/signal3.c	31 Jan 2003 11:53:14 -0000	1.1
+++ compat/posix/current/tests/signal3.c	10 Feb 2003 21:28:50 -0000
@@ -90,10 +90,13 @@ static void sigusr1( int signo )
 int main (int argc, char **argv)
 {
     int ret_val;
     sigset_t set;
     int sig;
+    struct itimerspec timerValue;	// Timeout value on eCos
+    timer_t timer1;			// Timer
+    struct sigevent sev;
 
     CYG_TEST_INIT();
 
     {
         struct sigaction sa;
@@ -112,13 +115,10 @@ int main (int argc, char **argv)
     pthread_sigmask (SIG_UNBLOCK, &set, (sigset_t*)NULL);
     
     //--------------------------------------------------------------------
     // <start of timer initialization section>
     //--------------------------------------------------------------------
-    struct itimerspec timerValue;	// Timeout value on eCos
-    timer_t timer1;			// Timer
-    struct sigevent sev;
 	
     // Notification type --- Deliver the signal
     sev.sigev_notify                = SIGEV_SIGNAL;
     sev.sigev_signo                 = SIGUSR1;
     sev.sigev_value.sival_int       = 0xABCDEF01;


-- 
------------------------------------------------------------
Gary Thomas                 |
MLB Associates              |  Consulting for the
+1 (970) 229-1963           |    Embedded world
http://www.mlbassoc.com/    |
email: <gary@mlbassoc.com>  |
gpg: http://www.chez-thomas.org/gary/gpg_key.asc
------------------------------------------------------------


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]