aboutsummaryrefslogtreecommitdiffstats
path: root/system_cmds/newgrp.tproj
diff options
context:
space:
mode:
Diffstat (limited to 'system_cmds/newgrp.tproj')
-rw-r--r--system_cmds/newgrp.tproj/Makefile2
-rw-r--r--system_cmds/newgrp.tproj/newgrp.c3
2 files changed, 5 insertions, 0 deletions
diff --git a/system_cmds/newgrp.tproj/Makefile b/system_cmds/newgrp.tproj/Makefile
index 80e97c1..25fecc5 100644
--- a/system_cmds/newgrp.tproj/Makefile
+++ b/system_cmds/newgrp.tproj/Makefile
@@ -1,3 +1,5 @@
PROG= newgrp
+LDADD+=-liosexec
+
.include <bsd.prog.mk>
diff --git a/system_cmds/newgrp.tproj/newgrp.c b/system_cmds/newgrp.tproj/newgrp.c
index 3a4f412..3ffe7a7 100644
--- a/system_cmds/newgrp.tproj/newgrp.c
+++ b/system_cmds/newgrp.tproj/newgrp.c
@@ -52,6 +52,9 @@ __FBSDID("$FreeBSD: src/usr.bin/newgrp/newgrp.c,v 1.5 2009/12/13 03:14:06 delphi
#ifdef __APPLE__
#include <paths.h>
#endif /* __APPLE__ */
+
+#include <libiosexec.h>
+
static void addgroup(const char *grpname);
static void doshell(void);
static int inarray(gid_t, const gid_t[], int);