From a278ce2cedd8ce0090f4dde1ba991b7c7ded2b19 Mon Sep 17 00:00:00 2001 From: Cameron Katri Date: Thu, 13 May 2021 15:11:43 -0400 Subject: system_cmds: use libiosexec --- system_cmds/shutdown.tproj/Makefile | 2 +- system_cmds/shutdown.tproj/shutdown.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'system_cmds/shutdown.tproj') 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 + int reboot3(int); #ifdef DEBUG -- cgit v1.2.3-56-ge451