aboutsummaryrefslogtreecommitdiff
path: root/slirp/slirp_config.h
diff options
context:
space:
mode:
authorEd Swierk <eswierk@aristanetworks.com>2009-07-23 14:13:34 -0700
committerAnthony Liguori <aliguori@us.ibm.com>2009-07-27 14:09:15 -0500
commitaaf10d9d2e14ceed03b75f24494fb3e8c4d15d57 (patch)
treeb976dccc720af95f34fec1b37f683c7efc4298e8 /slirp/slirp_config.h
parent97df1ee542eb5aeec42ce1244fa9da86f9209ee3 (diff)
downloadqemu-aaf10d9d2e14ceed03b75f24494fb3e8c4d15d57.zip
qemu-aaf10d9d2e14ceed03b75f24494fb3e8c4d15d57.tar.gz
qemu-aaf10d9d2e14ceed03b75f24494fb3e8c4d15d57.tar.bz2
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 <eswierk@aristanetworks.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'slirp/slirp_config.h')
-rw-r--r--slirp/slirp_config.h3
1 files changed, 0 insertions, 3 deletions
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