diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2020-11-13 22:38:51 +0000 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2020-11-14 00:53:49 +0100 |
commit | 3b13266f14641d8e956e888237df1da6f80fbc1b (patch) | |
tree | 6002e7163fe95659f3ffefdd571c706a53d4c167 /sysdeps | |
parent | 56010b73e81e2cb1082e418699f98353598fe671 (diff) | |
download | glibc-3b13266f14641d8e956e888237df1da6f80fbc1b.tar glibc-3b13266f14641d8e956e888237df1da6f80fbc1b.tar.gz glibc-3b13266f14641d8e956e888237df1da6f80fbc1b.tar.bz2 glibc-3b13266f14641d8e956e888237df1da6f80fbc1b.zip |
mach: Add missing assert.h include
Diffstat (limited to 'sysdeps')
-rw-r--r-- | sysdeps/mach/clock_gettime.c | 2 |
1 files changed, 2 insertions, 0 deletions
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 |