summaryrefslogtreecommitdiffstats
path: root/cpukit/include/sys/timex.h
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/include/sys/timex.h')
-rw-r--r--cpukit/include/sys/timex.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/cpukit/include/sys/timex.h b/cpukit/include/sys/timex.h
index d2d2012ff5..36b1fcdb5a 100644
--- a/cpukit/include/sys/timex.h
+++ b/cpukit/include/sys/timex.h
@@ -1,3 +1,12 @@
+/**
+ * @file
+ *
+ * @ingroup RTEMSScoreTimecounter
+ *
+ * @brief This header file provides interfaces of the Network Time Protocol
+ * (NTP) support.
+ */
+
/*-
***********************************************************************
* *
@@ -37,7 +46,7 @@
#define NTP_API 4 /* NTP API version */
-#ifdef __FreeBSD__
+#if defined(__FreeBSD__) || defined(__rtems__)
#include <sys/_timespec.h>
#endif /* __FreeBSD__ */
@@ -153,7 +162,7 @@ struct timex {
long stbcnt; /* stability limit exceeded (ro) */
};
-#ifdef __FreeBSD__
+#if defined(__FreeBSD__) || defined(__rtems__)
#ifdef _KERNEL
void ntp_update_second(int64_t *adjustment, time_t *newsec);