diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2022-02-10 06:52:14 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2022-02-10 06:52:14 +0000 |
commit | b7314b7563b870a0a304a543d249b6c265f333ef (patch) | |
tree | cd6524ef44ca01bbf78d726d46cdadb20e1c1ae0 /sys/arch | |
parent | 1cc1ac0b32ff8a4d8c9042ea212371749752b7e4 (diff) |
#ifdef the SUSPEND ioctl block
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/arm64/dev/apm.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/arch/arm64/dev/apm.c b/sys/arch/arm64/dev/apm.c index 074e656ca13..c0a522d9223 100644 --- a/sys/arch/arm64/dev/apm.c +++ b/sys/arch/arm64/dev/apm.c @@ -1,4 +1,4 @@ -/* $OpenBSD: apm.c,v 1.9 2022/02/09 23:54:55 deraadt Exp $ */ +/* $OpenBSD: apm.c,v 1.10 2022/02/10 06:52:13 deraadt Exp $ */ /*- * Copyright (c) 2001 Alexander Guy. All rights reserved. @@ -207,7 +207,7 @@ apmioctl(dev_t dev, u_long cmd, caddr_t data, int flag, struct proc *p) return ENXIO; switch (cmd) { - /* some ioctl names from linux */ +#ifdef SUSPEND case APM_IOC_STANDBY: case APM_IOC_SUSPEND: if ((flag & FWRITE) == 0) { @@ -231,6 +231,7 @@ apmioctl(dev_t dev, u_long cmd, caddr_t data, int flag, struct proc *p) sleep_state(NULL, SLEEP_HIBERNATE); break; #endif +#endif case APM_IOC_PRN_CTL: if ((flag & FWRITE) == 0) error = EBADF; |