freebsd-ports/lang/mono/files/patch-mono_utils_mono-proclib.c
Dan Langille 0708b421c7 Upgrade to 4.8.1.0
Approved by:	miwi (maintainer)
2017-05-01 14:32:54 +00:00

16 lines
577 B
C

--- mono/utils/mono-proclib.c.orig 2017-04-12 10:51:21.000000000 +0000
+++ mono/utils/mono-proclib.c 2017-05-01 13:05:26.013997000 +0000
@@ -116,11 +116,11 @@
mib [2] = KERN_PROC_ALL;
mib [3] = 0;
- res = sysctl (mib, 4, NULL, &data_len, NULL, 0);
+ res = sysctl (mib, 3, NULL, &data_len, NULL, 0);
if (res)
return NULL;
processes = (struct kinfo_proc *) g_malloc (data_len);
- res = sysctl (mib, 4, processes, &data_len, NULL, 0);
+ res = sysctl (mib, 3, processes, &data_len, NULL, 0);
if (res < 0) {
g_free (processes);
if (errno != ENOMEM)