pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

mono-git: Add patches/patch-mono_utils_mono-proclib.c



Module Name:	pkgsrc-wip
Committed By:	Kamil Rytarowski <n54%gmx.com@localhost>
Pushed By:	kamil
Date:		Mon Aug 8 23:40:42 2016 +0200
Changeset:	9dbabe02f13b2afc723053c30913a5cdb5406eb9

Modified Files:
	mono-git/distinfo
Added Files:
	mono-git/patches/patch-mono_utils_mono-proclib.c

Log Message:
mono-git: Add patches/patch-mono_utils_mono-proclib.c

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=9dbabe02f13b2afc723053c30913a5cdb5406eb9

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 mono-git/distinfo                                |  1 +
 mono-git/patches/patch-mono_utils_mono-proclib.c | 30 ++++++++++++++++++++++++
 2 files changed, 31 insertions(+)

diffs:
diff --git a/mono-git/distinfo b/mono-git/distinfo
index de6a3af..8124d78 100644
--- a/mono-git/distinfo
+++ b/mono-git/distinfo
@@ -6,3 +6,4 @@ SHA512 (mono-4.4.0.122.tar.bz2) = 264b3779fc94e40c44f8cc637169d7f3a6367ead75b932
 Size (mono-4.4.0.122.tar.bz2) = 84904723 bytes
 SHA1 (patch-eglib_src_giconv.c) = b56e6d328f614d7f70e156a2458b11b36b439f28
 SHA1 (patch-mono_utils_mono-logger.c) = 280e1bf49b79adf57823723287dbc88639d13551
+SHA1 (patch-mono_utils_mono-proclib.c) = 513cfbaef2221397ec7efa3b6a0babcf02a1fe43
diff --git a/mono-git/patches/patch-mono_utils_mono-proclib.c b/mono-git/patches/patch-mono_utils_mono-proclib.c
new file mode 100644
index 0000000..174cc4c
--- /dev/null
+++ b/mono-git/patches/patch-mono_utils_mono-proclib.c
@@ -0,0 +1,30 @@
+$NetBSD$
+
+--- mono/utils/mono-proclib.c.orig	2016-05-07 13:14:36.000000000 +0000
++++ mono/utils/mono-proclib.c
+@@ -48,6 +48,10 @@
+ #    define kinfo_starttime_member kp_proc.p_starttime
+ #    define kinfo_pid_member kp_proc.p_pid
+ #    define kinfo_name_member kp_proc.p_comm
++#elif defined(__NetBSD__)
++#    define kinfo_starttime_member p_ustart_sec
++#    define kinfo_pid_member p_pid
++#    define kinfo_name_member p_comm
+ #elif defined(__OpenBSD__)
+ // Can not figure out how to get the proc's start time on OpenBSD
+ #    undef kinfo_starttime_member 
+@@ -317,8 +321,13 @@ mono_process_get_times (gpointer pid, gi
+ 		{
+ 			KINFO_PROC processi;
+ 
+-			if (sysctl_kinfo_proc (pid, &processi))
++			if (sysctl_kinfo_proc (pid, &processi)) {
++#if defined(__NetBSD__)
++				*start_time = (gint64)processi.kinfo_starttime_member;
++#else
+ 				*start_time = mono_100ns_datetime_from_timeval (processi.kinfo_starttime_member);
++#endif
++			}
+ 		}
+ #endif
+ 


Home | Main Index | Thread Index | Old Index