diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2009-06-26 15:31:15 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2009-06-26 15:31:15 +0000 |
commit | 81b4aca9340cc9738ae4e0640f7ec7766bdacf5e (patch) | |
tree | 000806d7196c22cf34be0c24c4979a74b03f0327 /osdep-openbsd.c | |
parent | 63753735ec0ce0607cc7c34b677e2e5fb8faa6b6 (diff) | |
download | rtmux-81b4aca9340cc9738ae4e0640f7ec7766bdacf5e.tar.gz rtmux-81b4aca9340cc9738ae4e0640f7ec7766bdacf5e.tar.bz2 rtmux-81b4aca9340cc9738ae4e0640f7ec7766bdacf5e.zip |
#ifndef nitems.
Diffstat (limited to 'osdep-openbsd.c')
-rw-r--r-- | osdep-openbsd.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/osdep-openbsd.c b/osdep-openbsd.c index 243018f2..57a67371 100644 --- a/osdep-openbsd.c +++ b/osdep-openbsd.c @@ -1,4 +1,4 @@ -/* $Id: osdep-openbsd.c,v 1.15 2009-04-29 23:07:35 nicm Exp $ */ +/* $Id: osdep-openbsd.c,v 1.16 2009-06-26 15:31:15 nicm Exp $ */ /* * Copyright (c) 2009 Nicholas Marriott <nicm@users.sourceforge.net> @@ -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) |