net-mgmt/ccnet: Fix kernel thread support for DragonFly

PR:		196006
Submitted by:	maintainer
This commit is contained in:
John Marino 2014-12-19 16:42:41 +00:00
parent 31fb3cf622
commit 042424b7bf
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=374950
2 changed files with 2 additions and 2 deletions

View File

@ -2,7 +2,7 @@
PORTNAME= ccnet
PORTVERSION= 3.1.4
PORTREVISION= 2
PORTREVISION= 3
CATEGORIES= net-mgmt devel
MAINTAINER= yan_jingfeng@yahoo.com

View File

@ -92,7 +92,7 @@
+
+#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) \