From 6ac0be28d08cb3a07e94a950119802dc105b7fbe Mon Sep 17 00:00:00 2001 From: John Marino Date: Tue, 16 Dec 2014 12:41:55 +0000 Subject: net-mgmt/seafile: Fix kernel thread support on DragonFly PR: 196008 Submitted by: maintainer --- net-mgmt/seafile/files/patch-lib_utils.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'net-mgmt/seafile/files/patch-lib_utils.c') diff --git a/net-mgmt/seafile/files/patch-lib_utils.c b/net-mgmt/seafile/files/patch-lib_utils.c index 4ae52bcbfccc..9e49a40516ab 100644 --- a/net-mgmt/seafile/files/patch-lib_utils.c +++ b/net-mgmt/seafile/files/patch-lib_utils.c @@ -87,11 +87,10 @@ + +#elif defined(__DragonFly__) +#define PSKIP(kp) ((kp)->kp_pid == mypid || \ -+ (!kthreads && ((kp)->kp_flags & P_KTHREADP) != 0)) ++ (!kthreads && ((kp)->kp_flags & P_SYSTEM) != 0)) +#define KVM_OPENFILES(exec, coref, buf) \ + kvm_openfiles(exec, coref, NULL, O_RDONLY, buf) -+#define KVM_GETPROCS(kd, plist, nproc) \ -+ kvm_getprocs(kd, KERN_PROC_ALL, 0, &nproc) ++#define KVM_GETPROCS(kd, plist, nproc) \+ kvm_getprocs(kd, KERN_PROC_ALL, 0, &nproc) + +#elif defined(__NetBSD__) +#define PSKIP(kp) ((kp)->kp_pid == mypid || \ -- cgit v1.2.3