diff mbox series

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

Message ID 20201113235354.1920055-1-samuel.thibault@ens-lyon.org
State Committed, archived
Headers show
Series [hurd,commited] mach: Add missing assert.h include | expand

Commit Message

Samuel Thibault Nov. 13, 2020, 11:53 p.m. UTC
---
 sysdeps/mach/clock_gettime.c | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series

Patch

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