aboutsummaryrefslogtreecommitdiffstats
path: root/system_cmds/reboot.tproj
diff options
context:
space:
mode:
Diffstat (limited to 'system_cmds/reboot.tproj')
-rw-r--r--system_cmds/reboot.tproj/Makefile6
-rw-r--r--system_cmds/reboot.tproj/reboot.c3
2 files changed, 9 insertions, 0 deletions
diff --git a/system_cmds/reboot.tproj/Makefile b/system_cmds/reboot.tproj/Makefile
new file mode 100644
index 0000000..d36639a
--- /dev/null
+++ b/system_cmds/reboot.tproj/Makefile
@@ -0,0 +1,6 @@
+PROG= reboot
+MAN= reboot.8
+
+BINDIR=/sbin
+
+.include <bsd.prog.mk>
diff --git a/system_cmds/reboot.tproj/reboot.c b/system_cmds/reboot.tproj/reboot.c
index 5478704..8156d65 100644
--- a/system_cmds/reboot.tproj/reboot.c
+++ b/system_cmds/reboot.tproj/reboot.c
@@ -65,6 +65,7 @@ __unused static const char rcsid[] =
#include "kextmanager.h"
#include <IOKit/kext/kextmanager_types.h>
#endif
+typedef char *kobject_description_t[512];
#include <mach/mach_port.h> // allocate
#include <mach/mach.h> // task_self, etc
#include <servers/bootstrap.h> // bootstrap
@@ -74,6 +75,8 @@ __unused static const char rcsid[] =
#include <sys/time.h>
#endif
+int reboot3(int);
+
void usage(void);
u_int get_pageins(void);
#if defined(__APPLE__) && !(TARGET_OS_IPHONE && !TARGET_OS_SIMULATOR)