mach: Add missing assert.h include

This commit is contained in:
Samuel Thibault 2020-11-13 22:38:51 +00:00
parent 56010b73e8
commit 3b13266f14
1 changed files with 2 additions and 0 deletions

View 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