diff options
Diffstat (limited to 'testsuites/samples/nsecs/init.c')
-rw-r--r-- | testsuites/samples/nsecs/init.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/testsuites/samples/nsecs/init.c b/testsuites/samples/nsecs/init.c index d95617f1a4..f4f74203a3 100644 --- a/testsuites/samples/nsecs/init.c +++ b/testsuites/samples/nsecs/init.c @@ -20,6 +20,7 @@ #include <string.h> #include <stdlib.h> #include <sys/time.h> +#include <rtems/score/timespec.h> /* _Timespec_Substract */ char *my_ctime( time_t t ) { @@ -35,12 +36,6 @@ void subtract_em( struct timespec *t ) { - extern void _Timespec_Subtract( - const struct timespec *start, - const struct timespec *end, - struct timespec *result - ); - t->tv_sec = 0; t->tv_nsec = 0; _Timespec_Subtract( start, stop, t ); |