#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

@ -1,4 +1,4 @@
/* $Id: osdep-freebsd.c,v 1.15 2009-04-29 23:07:35 nicm Exp $ */
/* $Id: osdep-freebsd.c,v 1.16 2009-06-26 15:31:15 nicm Exp $ */
/*
* Copyright (c) 2009 Nicholas Marriott <nicm@users.sourceforge.net>
@ -31,7 +31,9 @@
char *osdep_get_name(int, char *);
#ifndef nitems
#define nitems(_a) (sizeof((_a)) / sizeof((_a)[0]))
#endif
#define is_runnable(p) \
((p)->ki_stat == SRUN || (p)->ki_stat == SIDL)