summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2009-06-26 10:55:38 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2009-06-26 10:55:38 +0000
commita29dc22a1b2491e3a172b717910dcb3628b996d2 (patch)
tree6d9e0a746841f28152eee9c835872bbe4e11aac6
parentd07d0a4f937ed3a6ef0c95f20ad399862b38ad16 (diff)
Also #ifndef nitems here, caught by Thomas Jeunet.
-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)