aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/cal.c
diff options
context:
space:
mode:
authorJose Ruiz <ruiz@adacore.com>2006-10-31 18:51:01 +0100
committerArnaud Charlet <charlet@gcc.gnu.org>2006-10-31 18:51:01 +0100
commitff9625b0fa07810acdae6d36dbaca8f5afef9d05 (patch)
tree7938121ac061f34669e90b1ccde8d29805af9319 /gcc/ada/cal.c
parentdb89aef26f919982e402fcd7733dbe719173341c (diff)
downloadgcc-ff9625b0fa07810acdae6d36dbaca8f5afef9d05.zip
gcc-ff9625b0fa07810acdae6d36dbaca8f5afef9d05.tar.gz
gcc-ff9625b0fa07810acdae6d36dbaca8f5afef9d05.tar.bz2
cal.c: Use the header sys/time.h for VxWorks 6.2 or greater when using RTPs.
2006-10-31 Jose Ruiz <ruiz@adacore.com> * cal.c: Use the header sys/time.h for VxWorks 6.2 or greater when using RTPs. * mkdir.c: Use a different version of mkdir for VxWorks 6.2 or greater when using RTPs. From-SVN: r118247
Diffstat (limited to 'gcc/ada/cal.c')
-rw-r--r--gcc/ada/cal.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/gcc/ada/cal.c b/gcc/ada/cal.c
index 7b38e42..0a552aa 100644
--- a/gcc/ada/cal.c
+++ b/gcc/ada/cal.c
@@ -6,7 +6,7 @@
* *
* C Implementation File *
* *
- * Copyright (C) 1992-2005, Free Software Foundation, Inc. *
+ * Copyright (C) 1992-2006, Free Software Foundation, Inc. *
* *
* GNAT is free software; you can redistribute it and/or modify it under *
* terms of the GNU General Public License as published by the Free Soft- *
@@ -55,6 +55,10 @@ __gnat_duration_to_timeval (long sec, long usec, void *t)
#if defined (__vxworks)
#ifdef __RTP__
#include <time.h>
+#include <version.h>
+#if (_WRS_VXWORKS_MINOR != 0)
+#include <sys/time.h>
+#endif
#else
#include <sys/times.h>
#endif