diff options
author | 2011-07-04 02:31:35 +0000 | |
---|---|---|
committer | 2011-07-04 02:31:35 +0000 | |
commit | 1281e88f3d9994e2721d817a2f72ab0809e6ef97 (patch) | |
tree | 352c3a2b228816aeb9b3bd844f173cec6f32479f | |
parent | rip out more effectively dead code, ryan ok (diff) | |
download | wireguard-openbsd-1281e88f3d9994e2721d817a2f72ab0809e6ef97.tar.xz wireguard-openbsd-1281e88f3d9994e2721d817a2f72ab0809e6ef97.zip |
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@
-rw-r--r-- | usr.sbin/trpt/trpt.c | 8 |
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> |