summaryrefslogtreecommitdiffstats
path: root/testsuites/psxtests/psxtime
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2009-10-25 17:51:21 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2009-10-25 17:51:21 +0000
commitc486a873db3dd9f11f2bb103f9d48d442ee883ae (patch)
tree1f5e88950f9187a956fa980de953f622e4ed24a5 /testsuites/psxtests/psxtime
parent2009-10-25 Ralf Corsépius <ralf.corsepius@rtems.org> (diff)
downloadrtems-c486a873db3dd9f11f2bb103f9d48d442ee883ae.tar.bz2
2009-10-25 Ralf Corsépius <ralf.corsepius@rtems.org>
* psxtime/test.c: Include <sys/time.h>. Conditionally add local prototype for adjtime() if sys/time.h doesn't supply it.
Diffstat (limited to 'testsuites/psxtests/psxtime')
-rw-r--r--testsuites/psxtests/psxtime/test.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/testsuites/psxtests/psxtime/test.c b/testsuites/psxtests/psxtime/test.c
index ca6bae2d06..da0b0b9f6e 100644
--- a/testsuites/psxtests/psxtime/test.c
+++ b/testsuites/psxtests/psxtime/test.c
@@ -22,6 +22,11 @@
#include <string.h>
#include <rtems.h>
#include <rtems/libio.h>
+#include <sys/time.h>
+
+#if !HAVE_DECL_ADJTIME
+extern int adjtime(const struct timeval *delta, struct timeval *olddelta);
+#endif
void test_adjtime(void);
void check_a_tod(