From c2ace2b23ece555c5060705394023dbff4d074b2 Mon Sep 17 00:00:00 2001 From: csgr Date: Mon, 22 Aug 1994 14:28:54 +0000 Subject: [PATCH] move #include of so that #defining KERNEL actually has an effect, and then also add a declaration of ernno as an extern int, because we lose that due to having KERNEL defined while we include errno.h. Reviewed by: Geoff. --- usr.bin/kdump/kdump.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/usr.bin/kdump/kdump.c b/usr.bin/kdump/kdump.c index 988bbbcbbf14..3e873af155b9 100644 --- a/usr.bin/kdump/kdump.c +++ b/usr.bin/kdump/kdump.c @@ -41,6 +41,10 @@ static char copyright[] = static char sccsid[] = "@(#)kdump.c 8.1 (Berkeley) 6/6/93"; #endif /* not lint */ +#define KERNEL +extern int errno; +#include +#undef KERNEL #include #include #include @@ -48,9 +52,6 @@ static char sccsid[] = "@(#)kdump.c 8.1 (Berkeley) 6/6/93"; #include #include #include -#define KERNEL -#include -#undef KERNEL #include #include #include