diff options
Diffstat (limited to 'procname.c')
-rw-r--r-- | procname.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -25,7 +25,9 @@ #include <string.h> #include <unistd.h> +#ifndef nitems #define nitems(_a) (sizeof((_a)) / sizeof((_a)[0])) +#endif #define is_runnable(p) \ ((p)->p_stat == SRUN || (p)->p_stat == SIDL || (p)->p_stat == SONPROC) |