pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/emulators/qemu we can use clock_gettime(2) instead of ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/3a595a53ec32
branches:  trunk
changeset: 398491:3a595a53ec32
user:      tnn <tnn%pkgsrc.org@localhost>
date:      Mon Aug 31 14:41:31 2009 +0000

description:
we can use clock_gettime(2) instead of gettimeofday(2) on NetBSD too

diffstat:

 emulators/qemu/distinfo         |   4 ++--
 emulators/qemu/patches/patch-dk |  19 ++++++++++++++-----
 2 files changed, 16 insertions(+), 7 deletions(-)

diffs (58 lines):

diff -r 5df495ce0b4f -r 3a595a53ec32 emulators/qemu/distinfo
--- a/emulators/qemu/distinfo   Mon Aug 31 14:37:33 2009 +0000
+++ b/emulators/qemu/distinfo   Mon Aug 31 14:41:31 2009 +0000
@@ -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-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 -r 5df495ce0b4f -r 3a595a53ec32 emulators/qemu/patches/patch-dk
--- a/emulators/qemu/patches/patch-dk   Mon Aug 31 14:37:33 2009 +0000
+++ b/emulators/qemu/patches/patch-dk   Mon Aug 31 14:41:31 2009 +0000
@@ -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 @@
      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 @@
  {
 -#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);



Home | Main Index | Thread Index | Old Index