summaryrefslogtreecommitdiffstats
path: root/freebsd/kern/kern_time.c
diff options
context:
space:
mode:
Diffstat (limited to 'freebsd/kern/kern_time.c')
-rw-r--r--freebsd/kern/kern_time.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/freebsd/kern/kern_time.c b/freebsd/kern/kern_time.c
index e07abc3a..8c760b48 100644
--- a/freebsd/kern/kern_time.c
+++ b/freebsd/kern/kern_time.c
@@ -698,6 +698,7 @@ realitexpire(void *arg)
}
/*NOTREACHED*/
}
+#endif /* __rtems__ */
/*
* Check that a proposed value to load into the .it_value or
@@ -716,6 +717,7 @@ itimerfix(struct timeval *tv)
return (0);
}
+#ifndef __rtems__
/*
* Decrement an interval timer by a specified number
* of microseconds, which must be less than a second,
@@ -756,6 +758,7 @@ expire:
itp->it_value.tv_usec = 0; /* sec is already 0 */
return (0);
}
+#endif /* __rtems__ */
/*
* Add and subtract routines for timevals.
@@ -772,7 +775,6 @@ timevaladd(struct timeval *t1, const struct timeval *t2)
t1->tv_usec += t2->tv_usec;
timevalfix(t1);
}
-#endif /* __rtems__ */
void
timevalsub(struct timeval *t1, const struct timeval *t2)