summaryrefslogtreecommitdiff
path: root/usr.sbin/trpt/trpt.c
diff options
context:
space:
mode:
authorAlexander Hall <halex@cvs.openbsd.org>2011-07-04 02:31:36 +0000
committerAlexander Hall <halex@cvs.openbsd.org>2011-07-04 02:31:36 +0000
commit4c036c789f71dfd15d07dcf5cdac5a086157ab98 (patch)
treeca3e8dfef74d2de4ad591a8608f2b4cc0cf59a40 /usr.sbin/trpt/trpt.c
parentc12845de4d588e383766df3d31fa8652a16dc02d (diff)
include sys/timeout.h with it's define/undef _KERNEL dance before
we include sys/socket.h since the latter also includes the same but without _KERNEL defined ok tedu@
Diffstat (limited to 'usr.sbin/trpt/trpt.c')
-rw-r--r--usr.sbin/trpt/trpt.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/trpt/trpt.c b/usr.sbin/trpt/trpt.c
index 4f9280ec146..02581d30224 100644
--- a/usr.sbin/trpt/trpt.c
+++ b/usr.sbin/trpt/trpt.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: trpt.c,v 1.26 2010/05/26 17:49:57 deraadt Exp $ */
+/* $OpenBSD: trpt.c,v 1.27 2011/07/04 02:31:35 halex Exp $ */
/*-
* Copyright (c) 1997 The NetBSD Foundation, Inc.
@@ -61,13 +61,13 @@
#include <sys/param.h>
#include <sys/queue.h>
+#define _KERNEL
+#include <sys/timeout.h> /* to get timeout_pending() and such */
+#undef _KERNEL
#include <sys/socket.h>
#include <sys/socketvar.h>
#define PRUREQUESTS
#include <sys/protosw.h>
-#define _KERNEL
-#include <sys/timeout.h> /* to get timeout_pending() and such */
-#undef _KERNEL
#include <sys/file.h>
#include <net/route.h>