Only pull in genfb.h if _KERNEL_OPT is defined. Reported by Kurt Schreiner
This commit is contained in:
parent
3c12759a90
commit
b16648eaeb
|
@ -1,4 +1,4 @@
|
||||||
/* $NetBSD: drm_memory.c,v 1.15 2009/02/15 18:42:20 jmcneill Exp $ */
|
/* $NetBSD: drm_memory.c,v 1.16 2009/02/15 20:21:24 jmcneill Exp $ */
|
||||||
|
|
||||||
/* drm_memory.h -- Memory management wrappers for DRM -*- linux-c -*-
|
/* drm_memory.h -- Memory management wrappers for DRM -*- linux-c -*-
|
||||||
* Created: Thu Feb 4 14:00:34 1999 by faith@valinux.com
|
* Created: Thu Feb 4 14:00:34 1999 by faith@valinux.com
|
||||||
|
@ -34,7 +34,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
__KERNEL_RCSID(0, "$NetBSD: drm_memory.c,v 1.15 2009/02/15 18:42:20 jmcneill Exp $");
|
__KERNEL_RCSID(0, "$NetBSD: drm_memory.c,v 1.16 2009/02/15 20:21:24 jmcneill Exp $");
|
||||||
/*
|
/*
|
||||||
__FBSDID("$FreeBSD: src/sys/dev/drm/drm_memory.c,v 1.2 2005/11/28 23:13:52 anholt Exp $");
|
__FBSDID("$FreeBSD: src/sys/dev/drm/drm_memory.c,v 1.2 2005/11/28 23:13:52 anholt Exp $");
|
||||||
*/
|
*/
|
||||||
|
@ -54,10 +54,14 @@ __FBSDID("$FreeBSD: src/sys/dev/drm/drm_memory.c,v 1.2 2005/11/28 23:13:52 anhol
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(_KERNEL_OPT)
|
||||||
#include "genfb.h"
|
#include "genfb.h"
|
||||||
#if NGENFB > 0
|
#if NGENFB > 0
|
||||||
#include <dev/wsfb/genfbvar.h>
|
#include <dev/wsfb/genfbvar.h>
|
||||||
#endif
|
#endif
|
||||||
|
#else
|
||||||
|
#define NGENFB 0 /* XXX */
|
||||||
|
#endif
|
||||||
|
|
||||||
#if !defined(_MODULE)
|
#if !defined(_MODULE)
|
||||||
MALLOC_DEFINE(M_DRM, "drm", "DRM Data Structures");
|
MALLOC_DEFINE(M_DRM, "drm", "DRM Data Structures");
|
||||||
|
|
Loading…
Reference in New Issue