From aaf10d9d2e14ceed03b75f24494fb3e8c4d15d57 Mon Sep 17 00:00:00 2001 From: Ed Swierk Date: Thu, 23 Jul 2009 14:13:34 -0700 Subject: slirp: Use monotonic clock if available (v2) Calling gettimeofday() to compute a time interval can cause problems if the system clock jumps forwards or backwards; replace updtime() with qemu_get_clock(rt_clock), which calls clock_gettime(CLOCK_MONOTONIC) if it is available. Also remove some useless macros. Signed-off-by: Ed Swierk Signed-off-by: Anthony Liguori --- slirp/slirp_config.h | 3 --- 1 file changed, 3 deletions(-) (limited to 'slirp/slirp_config.h') diff --git a/slirp/slirp_config.h b/slirp/slirp_config.h index ebaa99c..e977e77 100644 --- a/slirp/slirp_config.h +++ b/slirp/slirp_config.h @@ -187,9 +187,6 @@ #define NO_UNIX_SOCKETS #endif -/* Define if gettimeofday only takes one argument */ -#undef GETTIMEOFDAY_ONE_ARG - /* Define if you have revoke() */ #undef HAVE_REVOKE -- cgit v1.1