Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/external/bsd/drm2/include/drm dont pull in agp.h when bu...



details:   https://anonhg.NetBSD.org/src/rev/c9d9fbbd3fda
branches:  trunk
changeset: 341090:c9d9fbbd3fda
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Sat Oct 17 21:27:02 2015 +0000

description:
dont pull in agp.h when building as a module

diffstat:

 sys/external/bsd/drm2/include/drm/drm_agp_netbsd.h |  6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diffs (21 lines):

diff -r c4d87d63d928 -r c9d9fbbd3fda sys/external/bsd/drm2/include/drm/drm_agp_netbsd.h
--- a/sys/external/bsd/drm2/include/drm/drm_agp_netbsd.h        Sat Oct 17 21:18:47 2015 +0000
+++ b/sys/external/bsd/drm2/include/drm/drm_agp_netbsd.h        Sat Oct 17 21:27:02 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: drm_agp_netbsd.h,v 1.5 2015/10/17 21:09:49 jmcneill Exp $      */
+/*     $NetBSD: drm_agp_netbsd.h,v 1.6 2015/10/17 21:27:02 jmcneill Exp $      */
 
 /*-
  * Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -50,7 +50,11 @@
 #define        PCI_AGP_COMMAND_FW      AGPCMD_FWEN
 
 #if defined(__i386__) || defined(__x86_64__)
+#if defined(_KERNEL_OPT)
 #include "agp.h"
+#else
+#define NAGP 1
+#endif
 #if NAGP > 0
 #define        __OS_HAS_AGP    1
 #endif



Home | Main Index | Thread Index | Old Index