summaryrefslogtreecommitdiff
path: root/net-mgmt/seafile/files/patch-lib_utils.c
diff options
context:
space:
mode:
authorJohn Marino <marino@FreeBSD.org>2014-12-16 12:41:55 +0000
committerJohn Marino <marino@FreeBSD.org>2014-12-16 12:41:55 +0000
commit6ac0be28d08cb3a07e94a950119802dc105b7fbe (patch)
tree10f56c48936eaacc9d441b99233e48a0afa4741e /net-mgmt/seafile/files/patch-lib_utils.c
parentDoes not build < 10.0 even if WITH_OPENSSL_PORT: (diff)
net-mgmt/seafile: Fix kernel thread support on DragonFly
PR: 196008 Submitted by: maintainer
Diffstat (limited to 'net-mgmt/seafile/files/patch-lib_utils.c')
-rw-r--r--net-mgmt/seafile/files/patch-lib_utils.c5
1 files changed, 2 insertions, 3 deletions
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 || \