mirror of git://sourceware.org/git/glibc.git
mach: Add missing assert.h include
This commit is contained in:
parent
56010b73e8
commit
3b13266f14
|
@ -18,6 +18,7 @@
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
#include <mach.h>
|
#include <mach.h>
|
||||||
|
#include <assert.h>
|
||||||
#include <shlib-compat.h>
|
#include <shlib-compat.h>
|
||||||
|
|
||||||
/* Get the current time of day, putting it into *TS.
|
/* 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) {
|
switch (clock_id) {
|
||||||
|
|
||||||
case CLOCK_REALTIME:
|
case CLOCK_REALTIME:
|
||||||
|
case CLOCK_MONOTONIC:
|
||||||
{
|
{
|
||||||
/* __host_get_time can only fail if passed an invalid host_t.
|
/* __host_get_time can only fail if passed an invalid host_t.
|
||||||
__mach_host_self could theoretically fail (producing an
|
__mach_host_self could theoretically fail (producing an
|
||||||
|
|
Loading…
Reference in New Issue