summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2023-08-08 11:23:06 +0000
committerLaurent Bercot <ska@appnovation.com>2023-08-08 11:23:06 +0000
commitd2c2170ec527d8c5ad4829fe91135180ff6e36d2 (patch)
tree6f37c46d7a021b6a89c5a4be6148ed8cc9722788
parent2f0bd366a3e4155d49298397e1583296f4852c8c (diff)
downloadtipidee-d2c2170ec527d8c5ad4829fe91135180ff6e36d2.tar.xz
glibc declares setgroups() in grp.h
Signed-off-by: Laurent Bercot <ska@appnovation.com>
-rw-r--r--.gitignore2
-rw-r--r--src/tipideed/harden.c3
2 files changed, 4 insertions, 1 deletions
diff --git a/.gitignore b/.gitignore
index 649d51d..b0fadd7 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,5 +1,5 @@
*.o
-*.a
+*.a.xyzzy
*.lo
*.so
*.so.*
diff --git a/src/tipideed/harden.c b/src/tipideed/harden.c
index 5c925f2..516eefb 100644
--- a/src/tipideed/harden.c
+++ b/src/tipideed/harden.c
@@ -6,6 +6,9 @@
#include <unistd.h>
#include <errno.h>
#include <stdlib.h>
+#ifdef SKALIBS_HASSETGROUPS
+#include <grp.h>
+#endif
#include <skalibs/types.h>
#include <skalibs/strerr.h>