diff options
author | tnn <tnn@pkgsrc.org> | 2009-08-31 14:41:31 +0000 |
---|---|---|
committer | tnn <tnn@pkgsrc.org> | 2009-08-31 14:41:31 +0000 |
commit | 327f00841ee30bb3bfea89f1e20623ae84efe861 (patch) | |
tree | c4c1571b27a387ffd1d0861abebaed436eb04703 /emulators | |
parent | 35325a7720f2159055fad75eb925dffcc7655514 (diff) | |
download | pkgsrc-327f00841ee30bb3bfea89f1e20623ae84efe861.tar.gz |
we can use clock_gettime(2) instead of gettimeofday(2) on NetBSD too
Diffstat (limited to 'emulators')
-rw-r--r-- | emulators/qemu/distinfo | 4 | ||||
-rw-r--r-- | emulators/qemu/patches/patch-dk | 19 |
2 files changed, 16 insertions, 7 deletions
diff --git a/emulators/qemu/distinfo b/emulators/qemu/distinfo index b409a58ecb1..14f54eac712 100644 --- a/emulators/qemu/distinfo +++ b/emulators/qemu/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.46 2009/08/31 14:34:07 tnn Exp $ +$NetBSD: distinfo,v 1.47 2009/08/31 14:41:31 tnn Exp $ SHA1 (qemu-0.10.6.tar.gz) = 9432738ba513e07c981097468945b2e3ad9cb81e RMD160 (qemu-0.10.6.tar.gz) = 1321a10777d2e0c6b53887d0525a28cc1b36ec9b @@ -17,6 +17,6 @@ SHA1 (patch-dg) = 784fc32c7a93ec154b99f312db16aba9e950122a SHA1 (patch-dh) = c4c1882c81cdbe9d98fc50e8f60f8d233a7882c5 SHA1 (patch-di) = 96552e11794deb726cc027c41e06a378510ef534 SHA1 (patch-dj) = 78b2cc5ba2360a7237de2207365547b84867d070 -SHA1 (patch-dk) = e8fe4d8435ed8865ab74f231e9c1dc91dab629ce +SHA1 (patch-dk) = 3bff85805f1fd6e7b05f0d6302a9afdc5883577f SHA1 (patch-dl) = 2ba65792e342876ea5b05a70dba8d1b349661cda SHA1 (patch-dm) = 3786ee9dfa46648f773f06c683bccd574c5ee2cb diff --git a/emulators/qemu/patches/patch-dk b/emulators/qemu/patches/patch-dk index 9b8d906f6bf..93e26adcac4 100644 --- a/emulators/qemu/patches/patch-dk +++ b/emulators/qemu/patches/patch-dk @@ -1,7 +1,16 @@ -$NetBSD: patch-dk,v 1.1 2009/08/31 10:18:49 hasso Exp $ +$NetBSD: patch-dk,v 1.2 2009/08/31 14:41:31 tnn Exp $ ---- vl.c.orig 2009-08-30 08:33:14 +0300 -+++ vl.c 2009-08-30 16:02:53 +0300 +--- vl.c.orig 2009-07-17 02:56:26.000000000 +0200 ++++ vl.c +@@ -38,7 +38,7 @@ + #include "qemu-char.h" + #include "cache-utils.h" + #include "block.h" +-#include "audio/audio.h" ++#include "audio/qaudio.h" + #include "migration.h" + #include "kvm.h" + #include "balloon.h" @@ -74,7 +74,7 @@ #include <sys/select.h> #ifdef _BSD @@ -17,7 +26,7 @@ $NetBSD: patch-dk,v 1.1 2009/08/31 10:18:49 hasso Exp $ use_rt_clock = 0; -#if defined(__linux__) || (defined(__FreeBSD__) && __FreeBSD_version >= 500000) +#if defined(__linux__) || (defined(__FreeBSD__) && __FreeBSD_version >= 500000) \ -+ || defined(__DragonFly__) ++ || defined(__DragonFly__) || defined(__NetBSD__) { struct timespec ts; if (clock_gettime(CLOCK_MONOTONIC, &ts) == 0) { @@ -27,7 +36,7 @@ $NetBSD: patch-dk,v 1.1 2009/08/31 10:18:49 hasso Exp $ { -#if defined(__linux__) || (defined(__FreeBSD__) && __FreeBSD_version >= 500000) +#if defined(__linux__) || (defined(__FreeBSD__) && __FreeBSD_version >= 500000) \ -+ || defined(__DragonFly__) ++ || defined(__DragonFly__) || defined(__NetBSD__) if (use_rt_clock) { struct timespec ts; clock_gettime(CLOCK_MONOTONIC, &ts); |