diff options
| author | Donald Sharp <sharpd@nvidia.com> | 2024-01-04 14:34:14 -0500 |
|---|---|---|
| committer | Donald Sharp <sharpd@nvidia.com> | 2024-01-04 14:34:41 -0500 |
| commit | 88f8c900738d0df6332fae65f2415756e29f9b24 (patch) | |
| tree | 3b7b1bd9bc90db630f6f595719cd0965e54c1637 | |
| parent | 1b1fc14ffc65bff7ef7ee4c9da45f534f15e7a00 (diff) | |
lib, vtysh: Remove inclusion of grp.h for everyone
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
| -rw-r--r-- | lib/privs.c | 2 | ||||
| -rw-r--r-- | lib/zebra.h | 1 | ||||
| -rw-r--r-- | vtysh/vtysh.c | 2 |
3 files changed, 4 insertions, 1 deletions
diff --git a/lib/privs.c b/lib/privs.c index bb1b59e439..ef4a0adf04 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 ec486c0dde..f7b7a63a44 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 29358336e8..37653c6242 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> |
