diff options
author | martin <martin@pkgsrc.org> | 2010-03-04 14:56:13 +0000 |
---|---|---|
committer | martin <martin@pkgsrc.org> | 2010-03-04 14:56:13 +0000 |
commit | cac3951fa1c31be118637ffcb2fbd076f550b29f (patch) | |
tree | 37bee1ddfa4a9ee9e79ccc0cc7ff61efc7cb1687 /sysutils/xuvmstat/patches | |
parent | 68d1bc1825136775556bd8b7ecd5f0c2df547328 (diff) | |
download | pkgsrc-cac3951fa1c31be118637ffcb2fbd076f550b29f.tar.gz |
NetBSD 5.99.21 and newer does not swap out user areas
Diffstat (limited to 'sysutils/xuvmstat/patches')
-rw-r--r-- | sysutils/xuvmstat/patches/patch-aa | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/sysutils/xuvmstat/patches/patch-aa b/sysutils/xuvmstat/patches/patch-aa index 44e63e90442..69a52d14e40 100644 --- a/sysutils/xuvmstat/patches/patch-aa +++ b/sysutils/xuvmstat/patches/patch-aa @@ -1,7 +1,7 @@ -$NetBSD: patch-aa,v 1.8 2006/11/10 10:07:20 martin Exp $ +$NetBSD: patch-aa,v 1.9 2010/03/04 14:56:13 martin Exp $ --- xuvmstat.c.orig 2005-09-09 15:38:48.000000000 +0200 -+++ xuvmstat.c 2006-11-10 10:52:11.000000000 +0100 ++++ xuvmstat.c 2010-03-04 15:51:54.000000000 +0100 @@ -40,13 +40,13 @@ #include "libcdcx.h" @@ -199,12 +199,18 @@ $NetBSD: patch-aa,v 1.8 2006/11/10 10:07:20 martin Exp $ gp_ctx = create_graph(3, "SWITCH/SWAP", names, before, after, color, white); } -@@ -373,25 +373,25 @@ +@@ -372,26 +372,31 @@ + buf, strlen(buf)); y += get_fontheight(fnt_fixed) + 5; ++#if __NetBSD_Version__ >= 599002100 ++ snprintf(buf, sizeof(buf), " woke=%d, revs=%d", ++ curexp.pdwoke, curexp.pdrevs); ++#else snprintf(buf, sizeof(buf), " woke=%d, revs=%d, swout=%d", - cexp.pdwoke, cexp.pdrevs, cexp.pdswout); + curexp.pdwoke, curexp.pdrevs, curexp.pdswout); ++#endif XDrawImageString(xdpy->dpy, win, gc, 5, get_fontheight(fnt_fixed) + y, buf, strlen(buf)); y += get_fontheight(fnt_fixed) + 1; |