]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
mach: Add missing assert.h include
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Fri, 13 Nov 2020 22:38:51 +0000 (22:38 +0000)
committerSamuel Thibault <samuel.thibault@ens-lyon.org>
Fri, 13 Nov 2020 23:53:49 +0000 (00:53 +0100)
sysdeps/mach/clock_gettime.c

index 840e06036b93d4e767502edda786ae1c6c6cc527..f2f7bf1ff8e031ba4d8a7b8e034798b061a05b41 100644 (file)
@@ -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