diff options
| author | Norikatsu Shigemura <nork@FreeBSD.org> | 2005-05-01 07:39:11 +0000 |
|---|---|---|
| committer | Norikatsu Shigemura <nork@FreeBSD.org> | 2005-05-01 07:39:11 +0000 |
| commit | 12b9c1f2e37d240a7e6efa6085bd868893063753 (patch) | |
| tree | 9aade102f3af81161e22c7dba39ab8d4c3abcdf5 /emulators/qemu-devel/files/patch-be | |
| parent | Utilize INFO and PORTDOCS. (diff) | |
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]
Diffstat (limited to 'emulators/qemu-devel/files/patch-be')
| -rw-r--r-- | emulators/qemu-devel/files/patch-be | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/emulators/qemu-devel/files/patch-be b/emulators/qemu-devel/files/patch-be index 6c9a95892ade..6de47db9eaf9 100644 --- a/emulators/qemu-devel/files/patch-be +++ b/emulators/qemu-devel/files/patch-be @@ -1,12 +1,16 @@ Index: qemu/vl.c -@@ -666,8 +667,8 @@ - { - struct timeval r; - if (!gettimeofday(&r, NULL)) { -- return ((CLK_TCK * 1000LL) * (int64_t)r.tv_sec -- + ((int64_t)r.tv_usec * CLK_TCK) / 1000) / timer_freq; +@@ -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; |
