1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-06 01:57:40 +00:00
freebsd-ports/emulators/qemu-devel/files/patch-be
Norikatsu Shigemura 12b9c1f2e3 o Update to 0.7.0. [1]
o Remove hard samba dependency. [2]

PR:		ports/80486
Submitted by:	Jung-uk Kim <jkim@niksun.com> [1]
		Juergen Lock <nox@jelal.kn-bremen.de> (maintainer) [1]
Suggested by:	des [2]
2005-05-01 07:39:11 +00:00

17 lines
452 B
Plaintext

Index: qemu/vl.c
@@ -662,6 +662,14 @@
case QEMU_TIMER_REALTIME:
#ifdef _WIN32
return GetTickCount();
+#elif defined(_BSD)
+ {
+ struct timeval r;
+ if (!gettimeofday(&r, NULL)) {
+ return ((timer_freq * 1000LL) * (int64_t)r.tv_sec
+ + ((int64_t)r.tv_usec * timer_freq) / 1000) / timer_freq;
+ }
+ }
#else
{
struct tms tp;