mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-06 01:57:40 +00:00
12b9c1f2e3
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]
17 lines
452 B
Plaintext
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;
|