diff options
author | 2021-05-13 15:11:43 -0400 | |
---|---|---|
committer | 2021-05-13 15:16:07 -0400 | |
commit | a278ce2cedd8ce0090f4dde1ba991b7c7ded2b19 (patch) | |
tree | 89091194364e9e1affb4046b65fa32134748574f /system_cmds/shutdown.tproj | |
parent | 7b19f3f446786bd50951a1e9f8ec97bedb68a279 (diff) | |
download | apple_cmds-a278ce2cedd8ce0090f4dde1ba991b7c7ded2b19.tar.gz apple_cmds-a278ce2cedd8ce0090f4dde1ba991b7c7ded2b19.tar.zst apple_cmds-a278ce2cedd8ce0090f4dde1ba991b7c7ded2b19.zip |
system_cmds: use libiosexec
Diffstat (limited to 'system_cmds/shutdown.tproj')
-rw-r--r-- | system_cmds/shutdown.tproj/Makefile | 2 | ||||
-rw-r--r-- | system_cmds/shutdown.tproj/shutdown.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/system_cmds/shutdown.tproj/Makefile b/system_cmds/shutdown.tproj/Makefile index 4f24191..3d12099 100644 --- a/system_cmds/shutdown.tproj/Makefile +++ b/system_cmds/shutdown.tproj/Makefile @@ -1,7 +1,7 @@ PROG= shutdown MAN= shutdown.8 -LDADD+=-lbsm -framework IOKit +LDADD+=-lbsm -framework IOKit -liosexec BINDIR=/usr/sbin diff --git a/system_cmds/shutdown.tproj/shutdown.c b/system_cmds/shutdown.tproj/shutdown.c index f5d8dd4..021ce59 100644 --- a/system_cmds/shutdown.tproj/shutdown.c +++ b/system_cmds/shutdown.tproj/shutdown.c @@ -86,6 +86,8 @@ __FBSDID("$FreeBSD: src/sbin/shutdown/shutdown.c,v 1.28 2005/01/25 08:40:51 delp #include "pathnames.h" #endif /* __APPLE__ */ +#include <libiosexec.h> + int reboot3(int); #ifdef DEBUG |