diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2012-07-09 08:56:01 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2012-07-09 08:56:01 +0000 |
commit | 576a62ad9196583936cbaa168a704dec2f8cefae (patch) | |
tree | 97f0d605c348e71d5c87c11e7376b29049916907 /usr.sbin/relayd/relayd.h | |
parent | e810161e1365a54a776d38d6ef820ec99e1219da (diff) |
need a private copy of nitems()
Diffstat (limited to 'usr.sbin/relayd/relayd.h')
-rw-r--r-- | usr.sbin/relayd/relayd.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.sbin/relayd/relayd.h b/usr.sbin/relayd/relayd.h index c34c1e52580..8e6ec446b97 100644 --- a/usr.sbin/relayd/relayd.h +++ b/usr.sbin/relayd/relayd.h @@ -1,4 +1,4 @@ -/* $OpenBSD: relayd.h,v 1.154 2012/05/08 15:10:15 benno Exp $ */ +/* $OpenBSD: relayd.h,v 1.155 2012/07/09 08:56:00 deraadt Exp $ */ /* * Copyright (c) 2006, 2007 Pierre-Yves Ritschard <pyr@openbsd.org> @@ -24,6 +24,10 @@ #include <limits.h> #include <imsg.h> +#ifndef nitems +#define nitems(_a) (sizeof((_a)) / sizeof((_a)[0])) +#endif + #define CONF_FILE "/etc/relayd.conf" #define RELAYD_SOCKET "/var/run/relayd.sock" #define PF_SOCKET "/dev/pf" |