summary refs log tree commit diff
path: root/src/chpst.c
diff options
context:
space:
mode:
authorZ. Liu <zhixu.liu@gmail.com>2024-08-24 23:25:03 +0800
committerGerrit Pape <pape@smarden.org>2024-09-25 22:18:57 +0000
commit26de8c20c7ad0a30c2263b65424f72b45ad852e7 (patch)
tree3299246dd5690f3b407b1d4e879dcc2d1d741ff9 /src/chpst.c
parent0ff21cdee12a474fce0ff893aa999d954f5dc3d4 (diff)
downloadrunit-26de8c20c7ad0a30c2263b65424f72b45ad852e7.tar.gz
runit-26de8c20c7ad0a30c2263b65424f72b45ad852e7.tar.xz
runit-26de8c20c7ad0a30c2263b65424f72b45ad852e7.zip
fix compilation error(s): call to undeclared function for C99 and later
found by using clang 18 with CFLAGS: -Wall

error: call to undeclared function '...'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
  chpst.c: setgroups
  pathexec_run.c: execve
  prot.c: setgroups, setgid, setuid
  seek_set.c: lseek
Diffstat (limited to 'src/chpst.c')
-rw-r--r--src/chpst.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/chpst.c b/src/chpst.c
index f279d44..2055aeb 100644
--- a/src/chpst.c
+++ b/src/chpst.c
@@ -3,6 +3,7 @@
 #include <sys/time.h>
 #include <sys/resource.h>
 #include <unistd.h>
+#include <grp.h>
 #include "sgetopt.h"
 #include "error.h"
 #include "strerr.h"