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:
Geoff Rehmet 1994-08-22 14:28:54 +00:00
parent c80c3fd1f1
commit c1b99fe68e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=2215

View File

@ -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 <sys/errno.h>
#undef KERNEL
#include <sys/param.h>
#include <sys/errno.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/ioctl.h>
#include <sys/ptrace.h>
#define KERNEL
#include <sys/errno.h>
#undef KERNEL
#include <vis.h>
#include <stdio.h>
#include <stdlib.h>