From 73f633fa694a876b789e1934345e0ba475ffb331 Mon Sep 17 00:00:00 2001 From: Mark Pizzolato Date: Thu, 15 Oct 2015 13:22:34 -0700 Subject: [PATCH] slirp: Add missing clock_gettime support for OS X. --- slirp/simh/glib_qemu_stubs.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/slirp/simh/glib_qemu_stubs.c b/slirp/simh/glib_qemu_stubs.c index e3b5243e..3cbe8639 100644 --- a/slirp/simh/glib_qemu_stubs.c +++ b/slirp/simh/glib_qemu_stubs.c @@ -187,6 +187,11 @@ return now*100; #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) { struct timespec tv;