Also #ifndef nitems here, caught by Thomas Jeunet.

This commit is contained in:
Nicholas Marriott 2009-06-26 10:55:37 +00:00
parent eb8ab96980
commit c506e7f711

View File

@ -25,7 +25,9 @@
#include <string.h> #include <string.h>
#include <unistd.h> #include <unistd.h>
#ifndef nitems
#define nitems(_a) (sizeof((_a)) / sizeof((_a)[0])) #define nitems(_a) (sizeof((_a)) / sizeof((_a)[0]))
#endif
#define is_runnable(p) \ #define is_runnable(p) \
((p)->p_stat == SRUN || (p)->p_stat == SIDL || (p)->p_stat == SONPROC) ((p)->p_stat == SRUN || (p)->p_stat == SIDL || (p)->p_stat == SONPROC)