move #include of <sys/errno.h> 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.
This commit is contained in:
csgr 1994-08-22 14:28:54 +00:00
parent eab55510a6
commit c2ace2b23e

View File

@ -41,6 +41,10 @@ static char copyright[] =
static char sccsid[] = "@(#)kdump.c 8.1 (Berkeley) 6/6/93"; static char sccsid[] = "@(#)kdump.c 8.1 (Berkeley) 6/6/93";
#endif /* not lint */ #endif /* not lint */
#define KERNEL
extern int errno;
#include <sys/errno.h>
#undef KERNEL
#include <sys/param.h> #include <sys/param.h>
#include <sys/errno.h> #include <sys/errno.h>
#include <sys/time.h> #include <sys/time.h>
@ -48,9 +52,6 @@ static char sccsid[] = "@(#)kdump.c 8.1 (Berkeley) 6/6/93";
#include <sys/ktrace.h> #include <sys/ktrace.h>
#include <sys/ioctl.h> #include <sys/ioctl.h>
#include <sys/ptrace.h> #include <sys/ptrace.h>
#define KERNEL
#include <sys/errno.h>
#undef KERNEL
#include <vis.h> #include <vis.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>