Fix the patch to actually patch the file, not just create a patch file.

This commit is contained in:
Tom Judge 2016-11-14 16:33:15 +00:00
parent fa079162d7
commit d80cc28447
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=426124
3 changed files with 17 additions and 19 deletions

View file

@ -3,6 +3,7 @@
PORTNAME= mono
PORTVERSION= 4.6.1.5
PORTREVISION= 1
CATEGORIES= lang
MASTER_SITES= http://download.mono-project.com/sources/${PORTNAME}/

View file

@ -0,0 +1,16 @@
--- mono/utils/mono-proclib.c.orig 2016-07-29 09:10:33 UTC
+++ mono/utils/mono-proclib.c
@@ -107,11 +107,11 @@ mono_process_list (int *size)
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 *) malloc (data_len);
- res = sysctl (mib, 4, processes, &data_len, NULL, 0);
+ res = sysctl (mib, 3, processes, &data_len, NULL, 0);
if (res < 0) {
free (processes);
if (errno != ENOMEM)

View file

@ -1,19 +0,0 @@
--- mono/utils/patch-mono_utils_mono-proclib.c.orig 2016-10-05 17:28:38 UTC
+++ mono/utils/patch-mono_utils_mono-proclib.c
@@ -0,0 +1,16 @@
+--- mono/utils/mono-proclib.c.orig 2016-07-29 09:10:33 UTC
++++ mono/utils/mono-proclib.c
+@@ -107,11 +107,11 @@ mono_process_list (int *size)
+ 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 *) malloc (data_len);
+- res = sysctl (mib, 4, processes, &data_len, NULL, 0);
++ res = sysctl (mib, 3, processes, &data_len, NULL, 0);
+ if (res < 0) {
+ free (processes);
+ if (errno != ENOMEM)