summaryrefslogtreecommitdiff
path: root/usr.bin/tmux/procname.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/tmux/procname.c')
-rw-r--r--usr.bin/tmux/procname.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/tmux/procname.c b/usr.bin/tmux/procname.c
index 0eb398ee75d..e7f86885a41 100644
--- a/usr.bin/tmux/procname.c
+++ b/usr.bin/tmux/procname.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: procname.c,v 1.1 2009/06/01 22:58:49 nicm Exp $ */
+/* $OpenBSD: procname.c,v 1.2 2009/06/26 10:55:37 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)