summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2024-01-04 20:34:14 +0100
committerDonald Sharp <sharpd@nvidia.com>2024-01-04 20:34:41 +0100
commit88f8c900738d0df6332fae65f2415756e29f9b24 (patch)
tree3b7b1bd9bc90db630f6f595719cd0965e54c1637
parentlib: Remove in_systm.h it is never used (diff)
downloadfrr-88f8c900738d0df6332fae65f2415756e29f9b24.tar.xz
frr-88f8c900738d0df6332fae65f2415756e29f9b24.zip
lib, vtysh: Remove inclusion of grp.h for everyone
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
-rw-r--r--lib/privs.c2
-rw-r--r--lib/zebra.h1
-rw-r--r--vtysh/vtysh.c2
3 files changed, 4 insertions, 1 deletions
diff --git a/lib/privs.c b/lib/privs.c
index bb1b59e43..ef4a0adf0 100644
--- a/lib/privs.c
+++ b/lib/privs.c
@@ -7,6 +7,8 @@
*/
#include <zebra.h>
+#include <grp.h>
+
#ifdef HAVE_LCAPS
#include <sys/capability.h>
#include <sys/prctl.h>
diff --git a/lib/zebra.h b/lib/zebra.h
index ec486c0dd..f7b7a63a4 100644
--- a/lib/zebra.h
+++ b/lib/zebra.h
@@ -22,7 +22,6 @@
#include <signal.h>
#include <string.h>
#include <pwd.h>
-#include <grp.h>
#ifdef HAVE_STROPTS_H
#include <stropts.h>
#endif /* HAVE_STROPTS_H */
diff --git a/vtysh/vtysh.c b/vtysh/vtysh.c
index 29358336e..37653c624 100644
--- a/vtysh/vtysh.c
+++ b/vtysh/vtysh.c
@@ -5,6 +5,8 @@
#include <zebra.h>
+#include <grp.h>
+
#include <sys/un.h>
#include <setjmp.h>
#include <sys/wait.h>