-/* $OpenBSD: init.c,v 1.64 2017/05/03 09:51:39 mestre Exp $ */
+/* $OpenBSD: init.c,v 1.65 2017/06/16 06:46:54 natano Exp $ */
/* $NetBSD: init.c,v 1.22 1996/05/15 23:29:33 jtc Exp $ */
/*-
static const int death_sigs[3] = { SIGHUP, SIGTERM, SIGKILL };
int status;
-#ifdef CPU_LIDSUSPEND
+#ifdef CPU_LIDACTION
int mib[] = {CTL_MACHDEP, CPU_LIDACTION};
int lidaction = 0;
-/* $OpenBSD: reboot.c,v 1.36 2017/03/02 10:38:09 natano Exp $ */
+/* $OpenBSD: reboot.c,v 1.37 2017/06/16 06:46:54 natano Exp $ */
/* $NetBSD: reboot.c,v 1.8 1995/10/05 05:36:22 mycroft Exp $ */
/*
if (geteuid())
errx(1, "%s", strerror(EPERM));
-#ifdef CPU_LIDSUSPEND
+#ifdef CPU_LIDACTION
if (howto & RB_POWERDOWN) {
/* Disable suspending on laptop lid close */
int mib[] = {CTL_MACHDEP, CPU_LIDACTION};
sizeof(lidaction)) == -1 && errno != EOPNOTSUPP)
warn("sysctl");
}
-#endif /* CPU_LIDSUSPEND */
+#endif /* CPU_LIDACTION */
if (qflag) {
reboot(howto);