summaryrefslogtreecommitdiffstats
path: root/sys/dev/pci/drm/drm_linux.c
diff options
context:
space:
mode:
authorkettenis <kettenis@openbsd.org>2018-08-25 18:42:43 +0000
committerkettenis <kettenis@openbsd.org>2018-08-25 18:42:43 +0000
commit9943d3dff0fa937e0ea47f58c90d6d293eacf0b4 (patch)
tree5f7a102eb2dc2fa997deb093a5eff7f56ad22570 /sys/dev/pci/drm/drm_linux.c
parentMove HID->bus constant conversion for HID report types out of ihidev (diff)
downloadwireguard-openbsd-9943d3dff0fa937e0ea47f58c90d6d293eacf0b4.tar.xz
wireguard-openbsd-9943d3dff0fa937e0ea47f58c90d6d293eacf0b4.zip
Use __HAVE_ACPI to decide whether ACPI support should be considered.
ok deraadt@, krw@, jca@
Diffstat (limited to 'sys/dev/pci/drm/drm_linux.c')
-rw-r--r--sys/dev/pci/drm/drm_linux.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/drm/drm_linux.c b/sys/dev/pci/drm/drm_linux.c
index a414a2623a7..f71aab59c23 100644
--- a/sys/dev/pci/drm/drm_linux.c
+++ b/sys/dev/pci/drm/drm_linux.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: drm_linux.c,v 1.30 2018/08/20 16:00:22 mpi Exp $ */
+/* $OpenBSD: drm_linux.c,v 1.31 2018/08/25 18:42:43 kettenis Exp $ */
/*
* Copyright (c) 2013 Jonathan Gray <jsg@openbsd.org>
* Copyright (c) 2015, 2016 Mark Kettenis <kettenis@openbsd.org>
@@ -729,7 +729,7 @@ vga_put(struct pci_dev *pdev, int rsrc)
* ACPI types and interfaces.
*/
-#if defined(__amd64__) || defined(__i386__)
+#ifdef __HAVE_ACPI
#include "acpi.h"
#endif