Pkgsrc changes: * try to fix build failure on recent NetBSD, reported in PR 41178. * set LICENSE=gnu-gpl-v2 * marked as DESTDIR ready libstatgrab NEWS: libstatgrab 0.16 (13 March 2008) * Fix saidar build on Solaris with Sun's compiler. * Add support for FreeBSD 8.0. * Fix build on "armel" Debian port. (Thanks to Riku Voipio and Martin Guy) * Fix statgrab-make-mrtg-config on machines with no swap. (Thanks to Tom Carlson) libstatgrab 0.15 (14 July 2007) * Fix breakages in memory stats on OpenBSD that were introduced in the last release. (Thanks to David Love) * Update internal string functions and some related cleanups. (Thanks to David Love) * Fix compile warning on FreeBSD. libstatgrab 0.14 (08 January 2007) * Fix memory stats on OpenBSD. * Add colour support to saidar. (Thanks to Angelina Carlton) * Fix CPU stats on Solaris - swap and iowait were incorrectly reported. * Fix kstat related memory leaks on Solaris. (Thanks to Javier Donaire) * Fix network stats on some unusual Solaris setups. * Fix process time_spent on Linux. (Thanks to Fred Barnes) * Make interface up status check the link status as well. (Thanks to Michelangelo Vassallo) * Fix build on NetBSD 3. (Thanks to Wijnand Wiersma) * Rework curses detection code in the configure script. * Fix bug that caused saidar to crash when the window was rapidly resized. libstatgrab 0.13 (19 March 2006) * Fix build problems with recent linux kernels. * Make saidar truncate disk/inteface/mount names to fit in display. * Add WIN32 support using MINGW (not widely tested). * Fix network interface up/down status on Solaris. * Add extern "C" to header file to make linking with C++ code easier. * Fix statgrab to cope with filesystem paths containing dots. * Make NFS a legal filesystem type on all platforms. * A few minor build fixes.
32 lines
911 B
Text
32 lines
911 B
Text
$NetBSD: patch-ah,v 1.1 2009/05/16 11:46:09 obache Exp $
|
|
|
|
--- src/libstatgrab/tools.c.orig 2007-06-18 20:58:12.000000000 +0000
|
|
+++ src/libstatgrab/tools.c
|
|
@@ -498,14 +498,27 @@ kvm_t *sg_get_kvm2() {
|
|
#endif
|
|
|
|
#if defined(NETBSD) || defined(OPENBSD)
|
|
+#if defined(__NetBSD_Version__) && (__NetBSD_Version__ > 106000000)
|
|
+struct uvmexp_sysctl *sg_get_uvmexp() {
|
|
+#else
|
|
struct uvmexp *sg_get_uvmexp() {
|
|
+#endif
|
|
int mib[2];
|
|
+#if defined(__NetBSD_Version__) && (__NetBSD_Version__ > 106000000)
|
|
+ size_t size = sizeof(struct uvmexp_sysctl);
|
|
+ static struct uvmexp_sysctl uvm;
|
|
+ struct uvmexp_sysctl *new;
|
|
+
|
|
+ mib[0] = CTL_VM;
|
|
+ mib[1] = VM_UVMEXP2;
|
|
+#else
|
|
size_t size = sizeof(struct uvmexp);
|
|
static struct uvmexp uvm;
|
|
struct uvmexp *new;
|
|
|
|
mib[0] = CTL_VM;
|
|
mib[1] = VM_UVMEXP;
|
|
+#endif
|
|
|
|
if (sysctl(mib, 2, &uvm, &size, NULL, 0) < 0) {
|
|
sg_set_error_with_errno(SG_ERROR_SYSCTL, "CTL_VM.VM_UVMEXP");
|