summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bfdd/control.c1
-rw-r--r--bgpd/bgp_dump.c1
-rw-r--r--ldpd/control.c1
-rw-r--r--lib/command.c1
-rw-r--r--lib/libfrr.c1
-rw-r--r--lib/mgmt_msg.c2
-rw-r--r--lib/northbound_cli.c1
-rw-r--r--lib/pid_output.c1
-rw-r--r--lib/systemd.c1
-rw-r--r--lib/vty.c2
-rw-r--r--lib/zebra.h1
-rw-r--r--lib/zlog.c1
-rw-r--r--ospf6d/ospf6_auth_trailer.c1
-rw-r--r--ospfd/ospf_auth.c1
-rw-r--r--tests/helpers/c/main.c1
-rw-r--r--tests/isisd/test_isis_spf.c1
-rw-r--r--tests/lib/cli/common_cli.c1
-rw-r--r--tests/lib/northbound/test_oper_data.c1
-rw-r--r--tests/lib/test_privs.c1
-rw-r--r--tests/ospfd/test_ospf_spf.c1
-rw-r--r--tools/gen_northbound_callbacks.c1
-rw-r--r--vtysh/vtysh_main.c1
-rw-r--r--watchfrr/watchfrr.c2
-rw-r--r--zebra/zebra_mpls_netlink.c1
-rw-r--r--zebra/zebra_netns_id.c1
25 files changed, 26 insertions, 2 deletions
diff --git a/bfdd/control.c b/bfdd/control.c
index f435358f3..19888c140 100644
--- a/bfdd/control.c
+++ b/bfdd/control.c
@@ -11,6 +11,7 @@
*/
#include <zebra.h>
+#include <sys/stat.h>
#include <sys/un.h>
diff --git a/bgpd/bgp_dump.c b/bgpd/bgp_dump.c
index 529713ee3..53b521248 100644
--- a/bgpd/bgp_dump.c
+++ b/bgpd/bgp_dump.c
@@ -4,6 +4,7 @@
*/
#include <zebra.h>
+#include <sys/stat.h>
#include "log.h"
#include "stream.h"
diff --git a/ldpd/control.c b/ldpd/control.c
index db52d4632..a08ce4cc1 100644
--- a/ldpd/control.c
+++ b/ldpd/control.c
@@ -6,6 +6,7 @@
*/
#include <zebra.h>
+#include <sys/stat.h>
#include <sys/un.h>
#include "ldpd.h"
diff --git a/lib/command.c b/lib/command.c
index b33998839..3881829e2 100644
--- a/lib/command.c
+++ b/lib/command.c
@@ -11,6 +11,7 @@
#include <zebra.h>
#include <sys/utsname.h>
+#include <sys/stat.h>
#include <lib/version.h>
#include "command.h"
diff --git a/lib/libfrr.c b/lib/libfrr.c
index e80355f3b..bbef14378 100644
--- a/lib/libfrr.c
+++ b/lib/libfrr.c
@@ -6,6 +6,7 @@
*/
#include <zebra.h>
+#include <sys/stat.h>
#include <sys/un.h>
#include <sys/types.h>
diff --git a/lib/mgmt_msg.c b/lib/mgmt_msg.c
index 99d000537..d9c0d52e4 100644
--- a/lib/mgmt_msg.c
+++ b/lib/mgmt_msg.c
@@ -7,6 +7,8 @@
* Copyright (c) 2023, LabN Consulting, L.L.C.
*/
#include <zebra.h>
+#include <sys/stat.h>
+
#include "debug.h"
#include "network.h"
#include "sockopt.h"
diff --git a/lib/northbound_cli.c b/lib/northbound_cli.c
index 20f030e28..92d4ffb2b 100644
--- a/lib/northbound_cli.c
+++ b/lib/northbound_cli.c
@@ -5,6 +5,7 @@
*/
#include <zebra.h>
+#include <sys/stat.h>
#include "libfrr.h"
#include "lib/version.h"
diff --git a/lib/pid_output.c b/lib/pid_output.c
index 064a7bb47..ce1b7d196 100644
--- a/lib/pid_output.c
+++ b/lib/pid_output.c
@@ -5,6 +5,7 @@
*/
#include <zebra.h>
+#include <sys/stat.h>
#include <fcntl.h>
#include <log.h>
#include "lib/version.h"
diff --git a/lib/systemd.c b/lib/systemd.c
index 56a53a6e7..a82c376cf 100644
--- a/lib/systemd.c
+++ b/lib/systemd.c
@@ -5,6 +5,7 @@
*/
#include <zebra.h>
+#include <sys/stat.h>
#include <sys/un.h>
#include "frrevent.h"
diff --git a/lib/vty.c b/lib/vty.c
index a08a3c873..e068c5bf0 100644
--- a/lib/vty.c
+++ b/lib/vty.c
@@ -5,7 +5,7 @@
*/
#include <zebra.h>
-
+#include <sys/stat.h>
#include <lib/version.h>
#include <sys/types.h>
#include <sys/types.h>
diff --git a/lib/zebra.h b/lib/zebra.h
index 07cfc4492..2a92c76f3 100644
--- a/lib/zebra.h
+++ b/lib/zebra.h
@@ -25,7 +25,6 @@
#ifdef HAVE_STROPTS_H
#include <stropts.h>
#endif /* HAVE_STROPTS_H */
-#include <sys/stat.h>
#include <sys/types.h>
#include <sys/param.h>
#ifdef HAVE_SYS_SYSCTL_H
diff --git a/lib/zlog.c b/lib/zlog.c
index 446bdd702..3d7bd9ddf 100644
--- a/lib/zlog.c
+++ b/lib/zlog.c
@@ -4,6 +4,7 @@
*/
#include "zebra.h"
+#include <sys/stat.h>
#ifdef HAVE_GLIBC_BACKTRACE
#include <execinfo.h>
diff --git a/ospf6d/ospf6_auth_trailer.c b/ospf6d/ospf6_auth_trailer.c
index 82671eef7..54b951654 100644
--- a/ospf6d/ospf6_auth_trailer.c
+++ b/ospf6d/ospf6_auth_trailer.c
@@ -4,6 +4,7 @@
*/
#include "zebra.h"
+#include <sys/stat.h>
#ifdef CRYPTO_OPENSSL
#include <openssl/evp.h>
diff --git a/ospfd/ospf_auth.c b/ospfd/ospf_auth.c
index 74dc7d556..2b090dca1 100644
--- a/ospfd/ospf_auth.c
+++ b/ospfd/ospf_auth.c
@@ -5,6 +5,7 @@
*/
#include <zebra.h>
+#include <sys/stat.h>
#ifdef CRYPTO_OPENSSL
#include <openssl/evp.h>
diff --git a/tests/helpers/c/main.c b/tests/helpers/c/main.c
index 8af53a2ea..fdda7f1e2 100644
--- a/tests/helpers/c/main.c
+++ b/tests/helpers/c/main.c
@@ -3,6 +3,7 @@
*/
#include <zebra.h>
+#include <sys/stat.h>
#include <lib/version.h>
#include "getopt.h"
diff --git a/tests/isisd/test_isis_spf.c b/tests/isisd/test_isis_spf.c
index 6eb180b50..95f045c90 100644
--- a/tests/isisd/test_isis_spf.c
+++ b/tests/isisd/test_isis_spf.c
@@ -5,6 +5,7 @@
*/
#include <zebra.h>
+#include <sys/stat.h>
#include <lib/version.h>
#include "getopt.h"
diff --git a/tests/lib/cli/common_cli.c b/tests/lib/cli/common_cli.c
index e0981b991..f9f584f45 100644
--- a/tests/lib/cli/common_cli.c
+++ b/tests/lib/cli/common_cli.c
@@ -7,6 +7,7 @@
*/
#include <zebra.h>
+#include <sys/stat.h>
#include "frrevent.h"
#include "vty.h"
diff --git a/tests/lib/northbound/test_oper_data.c b/tests/lib/northbound/test_oper_data.c
index f82eddd3b..9ac75da4f 100644
--- a/tests/lib/northbound/test_oper_data.c
+++ b/tests/lib/northbound/test_oper_data.c
@@ -5,6 +5,7 @@
*/
#include <zebra.h>
+#include <sys/stat.h>
#include "frrevent.h"
#include "vty.h"
diff --git a/tests/lib/test_privs.c b/tests/lib/test_privs.c
index e26754857..caf55c718 100644
--- a/tests/lib/test_privs.c
+++ b/tests/lib/test_privs.c
@@ -3,6 +3,7 @@
*/
#include <zebra.h>
+#include <sys/stat.h>
#include <lib/version.h>
#include "getopt.h"
diff --git a/tests/ospfd/test_ospf_spf.c b/tests/ospfd/test_ospf_spf.c
index fc6b8e89e..932763100 100644
--- a/tests/ospfd/test_ospf_spf.c
+++ b/tests/ospfd/test_ospf_spf.c
@@ -1,4 +1,5 @@
#include <zebra.h>
+#include <sys/stat.h>
#include "getopt.h"
#include "frrevent.h"
diff --git a/tools/gen_northbound_callbacks.c b/tools/gen_northbound_callbacks.c
index 5b778a158..993aa3420 100644
--- a/tools/gen_northbound_callbacks.c
+++ b/tools/gen_northbound_callbacks.c
@@ -7,6 +7,7 @@
#define REALLY_NEED_PLAIN_GETOPT 1
#include <zebra.h>
+#include <sys/stat.h>
#include <unistd.h>
diff --git a/vtysh/vtysh_main.c b/vtysh/vtysh_main.c
index c57e8c799..58b1ded23 100644
--- a/vtysh/vtysh_main.c
+++ b/vtysh/vtysh_main.c
@@ -5,6 +5,7 @@
#include <zebra.h>
+#include <sys/stat.h>
#include <sys/un.h>
#include <setjmp.h>
#include <pwd.h>
diff --git a/watchfrr/watchfrr.c b/watchfrr/watchfrr.c
index 73a033170..6c4fcc3d6 100644
--- a/watchfrr/watchfrr.c
+++ b/watchfrr/watchfrr.c
@@ -6,6 +6,8 @@
*/
#include <zebra.h>
+#include <sys/stat.h>
+
#include "frrevent.h"
#include <log.h>
#include <network.h>
diff --git a/zebra/zebra_mpls_netlink.c b/zebra/zebra_mpls_netlink.c
index b76640743..f0f2c4b7a 100644
--- a/zebra/zebra_mpls_netlink.c
+++ b/zebra/zebra_mpls_netlink.c
@@ -4,6 +4,7 @@
*/
#include <zebra.h>
+#include <sys/stat.h>
#ifdef HAVE_NETLINK
diff --git a/zebra/zebra_netns_id.c b/zebra/zebra_netns_id.c
index ae8f9d9a8..a37d8b41d 100644
--- a/zebra/zebra_netns_id.c
+++ b/zebra/zebra_netns_id.c
@@ -5,6 +5,7 @@
*/
#include <zebra.h>
+#include <sys/stat.h>
#ifdef GNU_LINUX
#include <linux/if_link.h>