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:
parent
945e7d735e
commit
c132c098c7
|
@ -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.
|
* Copyright (c) 1990 The Regents of the University of California.
|
||||||
|
@ -78,6 +78,7 @@
|
||||||
|
|
||||||
struct ite_softc;
|
struct ite_softc;
|
||||||
|
|
||||||
|
#ifdef _KERNEL
|
||||||
/*
|
/*
|
||||||
* this struct is owned by the driver (grfcc, grfrt)
|
* this struct is owned by the driver (grfcc, grfrt)
|
||||||
* and is passed to grf when grf is configed. The ite also
|
* 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);
|
void (*g_itescroll)(struct ite_softc *, int, int, int, int);
|
||||||
int g_blank; /* shadow copy of blank value */
|
int g_blank; /* shadow copy of blank value */
|
||||||
};
|
};
|
||||||
|
#endif /* _KERNEL */
|
||||||
|
|
||||||
/* flags */
|
/* flags */
|
||||||
#define GF_ALIVE 0x01
|
#define GF_ALIVE 0x01
|
||||||
|
|
Loading…
Reference in New Issue