diff options
author | Nicholas Marriott <nicm@openbsd.org> | 2009-06-26 10:55:37 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@openbsd.org> | 2009-06-26 10:55:37 +0000 |
commit | c506e7f71194b25c4ba2bf0087c7ebc3fff34b05 (patch) | |
tree | b4aa39dc9d765d2f46c3c4539df27a68bf5730fa /procname.c | |
parent | eb8ab96980ac0104b95f2fe58319394aa641d00e (diff) |
Also #ifndef nitems here, caught by Thomas Jeunet.
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) |