slirp: Add missing clock_gettime support for OS X.

This commit is contained in:
Mark Pizzolato 2015-10-15 13:22:34 -07:00
parent 86d1e36f29
commit 73f633fa69

View file

@ -187,6 +187,11 @@ return now*100;
#else #else
#if !defined(CLOCK_REALTIME) && !defined(__hpux)
#define CLOCK_REALTIME 1
int clock_gettime(int clk_id, struct timespec *tp);
#endif
int64_t qemu_clock_get_ns(int type) int64_t qemu_clock_get_ns(int type)
{ {
struct timespec tv; struct timespec tv;