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-netbsd.c | |
parent | 63753735ec0ce0607cc7c34b677e2e5fb8faa6b6 (diff) | |
download | rtmux-81b4aca9340cc9738ae4e0640f7ec7766bdacf5e.tar.gz rtmux-81b4aca9340cc9738ae4e0640f7ec7766bdacf5e.tar.bz2 rtmux-81b4aca9340cc9738ae4e0640f7ec7766bdacf5e.zip |
#ifndef nitems.
Diffstat (limited to 'osdep-netbsd.c')
-rw-r--r-- | osdep-netbsd.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/osdep-netbsd.c b/osdep-netbsd.c index 96fd892a..2102277a 100644 --- a/osdep-netbsd.c +++ b/osdep-netbsd.c @@ -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) |