openbsd-ports/devel/libgtop2/patches/patch-sysdeps_openbsd_procmem_c
ajacoutot f5d46be714 Sync patches after upstream commit.
Remove bogus patch (indentical).

no pkg change
2012-01-22 11:55:10 +00:00

28 lines
970 B
Plaintext

$OpenBSD: patch-sysdeps_openbsd_procmem_c,v 1.4 2012/01/22 11:55:10 ajacoutot Exp $
From b11aa1517e203e36a8901f03ea57c50a25dfbfc7 Mon Sep 17 00:00:00 2001
From: Antoine Jacoutot <ajacoutot@gnome.org>
Date: Sun, 22 Jan 2012 11:47:49 +0000
Subject: OpenBSD: kinfo_proc2 -> kinfo_proc
--- sysdeps/openbsd/procmem.c.orig Sun Jul 24 21:13:56 2011
+++ sysdeps/openbsd/procmem.c Mon Jan 9 18:37:24 2012
@@ -96,7 +96,7 @@ void
glibtop_get_proc_mem_p (glibtop *server, glibtop_proc_mem *buf,
pid_t pid)
{
- struct kinfo_proc2 *pinfo;
+ struct kinfo_proc *pinfo;
int count;
@@ -111,7 +111,7 @@ glibtop_get_proc_mem_p (glibtop *server, glibtop_proc_
if (pid == 0) return;
/* Get the process data */
- pinfo = kvm_getproc2 (server->machine.kd, KERN_PROC_PID, pid,
+ pinfo = kvm_getprocs (server->machine.kd, KERN_PROC_PID, pid,
sizeof (*pinfo), &count);
if ((pinfo == NULL) || (count < 1)) {
glibtop_warn_io_r (server, "kvm_getprocs (%d)", pid);