aboutsummaryrefslogtreecommitdiff
path: root/src/time/timespec_get.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/time/timespec_get.c')
-rw-r--r--src/time/timespec_get.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/time/timespec_get.c b/src/time/timespec_get.c
index 40ea9c1c..4915e52c 100644
--- a/src/time/timespec_get.c
+++ b/src/time/timespec_get.c
@@ -8,3 +8,11 @@ int timespec_get(struct timespec * ts, int base)
int ret = __clock_gettime(CLOCK_REALTIME, ts);
return ret < 0 ? 0 : base;
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif