From c506e7f71194b25c4ba2bf0087c7ebc3fff34b05 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Fri, 26 Jun 2009 10:55:37 +0000 Subject: Also #ifndef nitems here, caught by Thomas Jeunet. --- procname.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'procname.c') diff --git a/procname.c b/procname.c index 262d63a4..e28b7535 100644 --- a/procname.c +++ b/procname.c @@ -25,7 +25,9 @@ #include #include +#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) -- cgit v1.2.3