slirp: Add missing clock_gettime support for OS X.
This commit is contained in:
parent
86d1e36f29
commit
73f633fa69
1 changed files with 5 additions and 0 deletions
|
@ -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;
|
||||||
|
|
Loading…
Add table
Reference in a new issue