Don't define struct grf_softc unless _KERNEL is defined, because it

depends on struct device which is also not defined unless _KERNEL is
defined.  Fixes usr.sbin/videomode build.
This commit is contained in:
he 2008-11-21 06:11:11 +00:00
parent 945e7d735e
commit c132c098c7
1 changed files with 3 additions and 1 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: grfvar.h,v 1.20 2007/03/04 05:59:20 christos Exp $ */
/* $NetBSD: grfvar.h,v 1.21 2008/11/21 06:11:11 he Exp $ */
/*
* Copyright (c) 1990 The Regents of the University of California.
@ -78,6 +78,7 @@
struct ite_softc;
#ifdef _KERNEL
/*
* this struct is owned by the driver (grfcc, grfrt)
* and is passed to grf when grf is configed. The ite also
@ -103,6 +104,7 @@ struct grf_softc {
void (*g_itescroll)(struct ite_softc *, int, int, int, int);
int g_blank; /* shadow copy of blank value */
};
#endif /* _KERNEL */
/* flags */
#define GF_ALIVE 0x01