Skip to content

Commit

Permalink
lib: zebra.h uses pwd.h when it should not
Browse files Browse the repository at this point in the history
Signed-off-by: Donald Sharp <[email protected]>
  • Loading branch information
donaldsharp authored and Donald Sharp committed Jan 6, 2024
1 parent 94ec0e2 commit f042537
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/privs.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
*/
#include <zebra.h>

#include <pwd.h>
#include <grp.h>

#ifdef HAVE_LCAPS
Expand Down
1 change: 0 additions & 1 deletion lib/zebra.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
#include <errno.h>
#include <signal.h>
#include <string.h>
#include <pwd.h>
#ifdef HAVE_STROPTS_H
#include <stropts.h>
#endif /* HAVE_STROPTS_H */
Expand Down
1 change: 1 addition & 0 deletions vtysh/vtysh.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

#include <zebra.h>

#include <pwd.h>
#include <grp.h>

#include <sys/un.h>
Expand Down

0 comments on commit f042537

Please sign in to comment.