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/9ae183a0e7a5
branches:  trunk
changeset: 811220:9ae183a0e7a5
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 5b760a8cb739 -r 9ae183a0e7a5 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