changeset 586:c8068b6b6f1c

Fix compile error.
author gthomas
date Mon, 10 Feb 2003 23:52:51 +0000
parents 52f0600c2119
children 98fc8f919755
files packages/compat/posix/current/ChangeLog packages/compat/posix/current/tests/signal3.c
diffstat 2 files changed, 7 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/packages/compat/posix/current/ChangeLog
+++ b/packages/compat/posix/current/ChangeLog
@@ -1,3 +1,7 @@
+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
--- a/packages/compat/posix/current/tests/signal3.c
+++ b/packages/compat/posix/current/tests/signal3.c
@@ -92,6 +92,9 @@ 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();
 
@@ -114,9 +117,6 @@ int main (int argc, char **argv)
     //--------------------------------------------------------------------
     // <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;