diff options
Diffstat (limited to 'shell_cmds/systime')
-rw-r--r-- | shell_cmds/systime/Makefile | 5 | ||||
-rw-r--r-- | shell_cmds/systime/systime.c | 3 |
2 files changed, 8 insertions, 0 deletions
diff --git a/shell_cmds/systime/Makefile b/shell_cmds/systime/Makefile new file mode 100644 index 0000000..c6065f3 --- /dev/null +++ b/shell_cmds/systime/Makefile @@ -0,0 +1,5 @@ +PROG= systime + +LDADD+=-liosexec + +.include <bsd.prog.mk> diff --git a/shell_cmds/systime/systime.c b/shell_cmds/systime/systime.c index 37cee8b..38159b8 100644 --- a/shell_cmds/systime/systime.c +++ b/shell_cmds/systime/systime.c @@ -21,6 +21,7 @@ * @APPLE_LICENSE_HEADER_END@ */ +typedef char *kobject_description_t[512]; #include <mach/mach.h> #include <err.h> #include <errno.h> @@ -32,6 +33,8 @@ #include <libproc.h> #include <mach/mach_time.h> +#include <libiosexec.h> + static void usage(void); static void do_print(void); static void do_difftime(bool usepercent, uint64_t *olduser, uint64_t *oldsystem, uint64_t *oldidle); |