bde also tells me that he is confident that P_SYSTEM will not work
any better on 4.x than it does on 5.2. If that's true then there is no point to the __FreeBSD_version check that I had added.
This commit is contained in:
parent
df297ea749
commit
0544a9076c
@ -68,15 +68,8 @@ __FBSDID("$FreeBSD$");
|
||||
#define STATUS_BADUSAGE 2
|
||||
#define STATUS_ERROR 3
|
||||
|
||||
#ifdef __FreeBSD__
|
||||
#if __FreeBSD_version > 502000
|
||||
/* Check for system-processes which should always be ignored. */
|
||||
#define IS_KERNPROC(kp) ((kp)->ki_flag & P_KTHREAD)
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifndef IS_KERNPROC
|
||||
#define IS_KERNPROC(kp) ((kp)->ki_flag & P_SYSTEM)
|
||||
#endif
|
||||
|
||||
enum listtype {
|
||||
LT_GENERIC,
|
||||
|
Loading…
x
Reference in New Issue
Block a user