commit-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[hurd,commited] mach: Add missing assert.h include


From: Samuel Thibault
Subject: [hurd,commited] mach: Add missing assert.h include
Date: Sat, 14 Nov 2020 00:53:54 +0100

---
 sysdeps/mach/clock_gettime.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/sysdeps/mach/clock_gettime.c b/sysdeps/mach/clock_gettime.c
index 840e06036b..f2f7bf1ff8 100644
--- a/sysdeps/mach/clock_gettime.c
+++ b/sysdeps/mach/clock_gettime.c
@@ -18,6 +18,7 @@
 #include <errno.h>
 #include <time.h>
 #include <mach.h>
+#include <assert.h>
 #include <shlib-compat.h>
 
 /* Get the current time of day, putting it into *TS.
@@ -31,6 +32,7 @@ __clock_gettime (clockid_t clock_id, struct timespec *ts)
   switch (clock_id) {
 
     case CLOCK_REALTIME:
+    case CLOCK_MONOTONIC:
       {
        /* __host_get_time can only fail if passed an invalid host_t.
           __mach_host_self could theoretically fail (producing an
-- 
2.29.2




reply via email to

[Prev in Thread] Current Thread [Next in Thread]