mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-08-03 09:48:00 -04:00
23 lines
893 B
Plaintext
23 lines
893 B
Plaintext
$NetBSD: patch-af,v 1.3 2012/12/27 21:04:11 bsiegert Exp $
|
|
|
|
--- src/polkit/polkit-sysdeps.c.orig 2008-11-21 22:17:08.000000000 -0500
|
|
+++ src/polkit/polkit-sysdeps.c
|
|
@@ -106,7 +106,7 @@ polkit_sysdeps_get_start_time_for_pid (p
|
|
}
|
|
start_time = (unsigned long long) (info.pr_start.tv_sec);
|
|
#else
|
|
-#ifdef __FreeBSD__
|
|
+#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__DragonFly__) || defined(__OpenBSD__)
|
|
filename = kit_strdup_printf ("/proc/%d/status", pid);
|
|
#else
|
|
filename = kit_strdup_printf ("/proc/%d/stat", pid);
|
|
@@ -121,7 +121,7 @@ polkit_sysdeps_get_start_time_for_pid (p
|
|
goto out;
|
|
}
|
|
|
|
-#ifdef __FreeBSD__
|
|
+#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__DragonFly__) || defined(__OpenBSD__)
|
|
tokens = kit_strsplit (contents, ' ', &num_tokens);
|
|
if (tokens == NULL)
|
|
goto out;
|