summaryrefslogtreecommitdiffstats
path: root/sys/dev/acpi/acpi.c
diff options
context:
space:
mode:
authormlarkin <mlarkin@openbsd.org>2012-03-29 06:58:10 +0000
committermlarkin <mlarkin@openbsd.org>2012-03-29 06:58:10 +0000
commitd4af8047a56861e378bf6f089c6926bd96de8992 (patch)
tree2c832a212ac762c867d8b215dc16c84fd7621a69 /sys/dev/acpi/acpi.c
parentPrevent hibernation attempts on machines with unsupported disk controllers. (diff)
downloadwireguard-openbsd-d4af8047a56861e378bf6f089c6926bd96de8992.tar.xz
wireguard-openbsd-d4af8047a56861e378bf6f089c6926bd96de8992.zip
Missing #ifdef in previous diff
Diffstat (limited to 'sys/dev/acpi/acpi.c')
-rw-r--r--sys/dev/acpi/acpi.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/dev/acpi/acpi.c b/sys/dev/acpi/acpi.c
index d471cf387f6..119e1ddddc0 100644
--- a/sys/dev/acpi/acpi.c
+++ b/sys/dev/acpi/acpi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: acpi.c,v 1.231 2012/03/29 06:57:02 mlarkin Exp $ */
+/* $OpenBSD: acpi.c,v 1.232 2012/03/29 06:58:10 mlarkin Exp $ */
/*
* Copyright (c) 2005 Thorsten Lockert <tholo@sigmasoft.com>
* Copyright (c) 2005 Jordan Hargrave <jordan@openbsd.org>
@@ -30,7 +30,10 @@
#include <sys/workq.h>
#include <sys/sched.h>
#include <sys/reboot.h>
+
+#ifdef HIBERNATE
#include <sys/hibernate.h>
+#endif
#include <machine/conf.h>
#include <machine/cpufunc.h>