Download raw body.
Fix build w/o SUSPEND option
Hi,
this diff fixes the kernel build without the SUSPEND option. In all
other cases we also call resuming() inside an ifdef SUSPEND macro.
ok?
bye,
Jan
Index: dev/acpi/acpibtn.c
===================================================================
RCS file: /cvs/src/sys/dev/acpi/acpibtn.c,v
diff -u -p -r1.55 acpibtn.c
--- dev/acpi/acpibtn.c 16 Jun 2025 20:21:33 -0000 1.55
+++ dev/acpi/acpibtn.c 29 Oct 2025 17:12:59 -0000
@@ -229,9 +229,11 @@ acpibtn_notify(struct aml_node *node, in
dnprintf(10, "acpibtn_notify: %.2x %s\n", notify_type,
sc->sc_devnode->name);
+#ifdef SUSPEND
/* Ignore button events if we're resuming. */
if (resuming())
return (0);
+#endif
switch (sc->sc_btn_type) {
case ACPIBTN_LID:
Fix build w/o SUSPEND option