aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/mach
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2020-11-13 22:38:51 +0000
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2020-11-14 00:53:49 +0100
commit3b13266f14641d8e956e888237df1da6f80fbc1b (patch)
tree6002e7163fe95659f3ffefdd571c706a53d4c167 /sysdeps/mach
parent56010b73e81e2cb1082e418699f98353598fe671 (diff)
downloadglibc-3b13266f14641d8e956e888237df1da6f80fbc1b.zip
glibc-3b13266f14641d8e956e888237df1da6f80fbc1b.tar.gz
glibc-3b13266f14641d8e956e888237df1da6f80fbc1b.tar.bz2
mach: Add missing assert.h include
Diffstat (limited to 'sysdeps/mach')
-rw-r--r--sysdeps/mach/clock_gettime.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sysdeps/mach/clock_gettime.c b/sysdeps/mach/clock_gettime.c
index 840e060..f2f7bf1 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