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/linux only include acpivar.h w...



details:   https://anonhg.NetBSD.org/src/rev/8f5e5a981139
branches:  trunk
changeset: 341078:8f5e5a981139
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Sat Oct 17 21:07:23 2015 +0000

description:
only include acpivar.h when NACPICA > 0

diffstat:

 sys/external/bsd/drm2/include/linux/acpi.h |  12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)

diffs (26 lines):

diff -r ac7d0b681124 -r 8f5e5a981139 sys/external/bsd/drm2/include/linux/acpi.h
--- a/sys/external/bsd/drm2/include/linux/acpi.h        Sat Oct 17 21:06:42 2015 +0000
+++ b/sys/external/bsd/drm2/include/linux/acpi.h        Sat Oct 17 21:07:23 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: acpi.h,v 1.3 2014/11/05 23:46:09 nonaka Exp $  */
+/*     $NetBSD: acpi.h,v 1.4 2015/10/17 21:07:23 jmcneill Exp $        */
 
 /*-
  * Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -32,6 +32,16 @@
 #ifndef _LINUX_ACPI_H_
 #define _LINUX_ACPI_H_
 
+#ifdef _KERNEL_OPT
+#if defined(__i386__) || defined(__x86_64__)
+#include "acpica.h"
+#else
+#define NACPICA 0
+#endif
+#endif
+
+#if NACPICA > 0
 #include <dev/acpi/acpivar.h>
+#endif
 
 #endif  /* _LINUX_ACPI_H_ */



Home | Main Index | Thread Index | Old Index