[rtems-libbsd commit] Provide CLOCK_UPTIME

Sebastian Huber sebh at rtems.org
Wed Nov 9 09:05:07 UTC 2016


Module:    rtems-libbsd
Branch:    master
Commit:    8090fa00ecfce0bfd802f3649cde80b5c455fde3
Changeset: http://git.rtems.org/rtems-libbsd/commit/?id=8090fa00ecfce0bfd802f3649cde80b5c455fde3

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Mon Oct 24 09:01:28 2016 +0200

Provide CLOCK_UPTIME

---

 rtemsbsd/include/machine/rtems-bsd-user-space.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/rtemsbsd/include/machine/rtems-bsd-user-space.h b/rtemsbsd/include/machine/rtems-bsd-user-space.h
index ef7c592..acad9ff 100644
--- a/rtemsbsd/include/machine/rtems-bsd-user-space.h
+++ b/rtemsbsd/include/machine/rtems-bsd-user-space.h
@@ -61,6 +61,10 @@
 #define	CLOCK_MONOTONIC_FAST CLOCK_MONOTONIC
 #endif
 
+#ifndef CLOCK_UPTIME
+#define	CLOCK_UPTIME CLOCK_MONOTONIC
+#endif
+
 #define	SIZE_T_MAX SIZE_MAX
 
 __BEGIN_DECLS



More information about the vc mailing list