summaryrefslogtreecommitdiffstats
path: root/usr.sbin/syslogd
diff options
context:
space:
mode:
authortedu <tedu@openbsd.org>2016-08-16 18:41:57 +0000
committertedu <tedu@openbsd.org>2016-08-16 18:41:57 +0000
commitf75ac03558ed21fb615961669e98397e4fc7d0a2 (patch)
tree77cfd7b9aa99efe71c85fd9fa625a8af52bdc0b2 /usr.sbin/syslogd
parentAdd HISTORY. (diff)
downloadwireguard-openbsd-f75ac03558ed21fb615961669e98397e4fc7d0a2.tar.xz
wireguard-openbsd-f75ac03558ed21fb615961669e98397e4fc7d0a2.zip
stop including sys/param.h for nitems. define locally as needed.
ok natano reyk
Diffstat (limited to 'usr.sbin/syslogd')
-rw-r--r--usr.sbin/syslogd/ttymsg.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/usr.sbin/syslogd/ttymsg.c b/usr.sbin/syslogd/ttymsg.c
index e899c786973..e7c0738bb97 100644
--- a/usr.sbin/syslogd/ttymsg.c
+++ b/usr.sbin/syslogd/ttymsg.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ttymsg.c,v 1.10 2016/04/02 19:55:10 krw Exp $ */
+/* $OpenBSD: ttymsg.c,v 1.11 2016/08/16 18:41:57 tedu Exp $ */
/* $NetBSD: ttymsg.c,v 1.3 1994/11/17 07:17:55 jtc Exp $ */
/*
@@ -30,7 +30,6 @@
* SUCH DAMAGE.
*/
-#include <sys/param.h> /* nitems */
#include <sys/stat.h>
#include <dirent.h>
@@ -45,6 +44,10 @@
#include "syslogd.h"
+#ifndef nitems
+#define nitems(_a) (sizeof((_a)) / sizeof((_a)[0]))
+#endif
+
struct tty_delay {
struct event td_event;
size_t td_length;