#ifndef nitems.

This commit is contained in:
Nicholas Marriott
2009-06-26 15:31:15 +00:00
parent 63753735ec
commit 81b4aca934
4 changed files with 11 additions and 3 deletions

View File

@ -26,7 +26,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 == LSRUN || (p)->p_stat == SIDL)