aboutsummaryrefslogtreecommitdiffstats
path: root/shell_cmds/systime
diff options
context:
space:
mode:
authorCameron Katri <me@cameronkatri.com>2021-05-13 14:49:17 -0400
committerCameron Katri <me@cameronkatri.com>2021-05-13 15:16:03 -0400
commit7b19f3f446786bd50951a1e9f8ec97bedb68a279 (patch)
treea8d7410224f1c6276b462772185ee3dbffdfa8ac /shell_cmds/systime
parent73ee5682ebb4865da9ba397b95bb81cf6ce073a6 (diff)
downloadapple_cmds-7b19f3f446786bd50951a1e9f8ec97bedb68a279.tar.gz
apple_cmds-7b19f3f446786bd50951a1e9f8ec97bedb68a279.tar.zst
apple_cmds-7b19f3f446786bd50951a1e9f8ec97bedb68a279.zip
shell_cmds: use libiosexec
Diffstat (limited to 'shell_cmds/systime')
-rw-r--r--shell_cmds/systime/Makefile2
-rw-r--r--shell_cmds/systime/systime.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/shell_cmds/systime/Makefile b/shell_cmds/systime/Makefile
index d7f9881..c6065f3 100644
--- a/shell_cmds/systime/Makefile
+++ b/shell_cmds/systime/Makefile
@@ -1,3 +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..555fc6a 100644
--- a/shell_cmds/systime/systime.c
+++ b/shell_cmds/systime/systime.c
@@ -32,6 +32,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);