diff options
| author | Donald Sharp <sharpd@nvidia.com> | 2024-01-04 16:03:55 -0500 | 
|---|---|---|
| committer | Donald Sharp <sharpd@nvidia.com> | 2024-01-09 12:39:23 -0500 | 
| commit | 848dcf3d034bc2ca390b6aff968be83eaf11e584 (patch) | |
| tree | 667e43d50ca06e2c5e200be9f65559e73ac6e26b | |
| parent | 7497d33f2f5475c0d2e516dde221c1222271ec07 (diff) | |
*: remove sys/stat.h from zebra.h
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
| -rw-r--r-- | bfdd/control.c | 1 | ||||
| -rw-r--r-- | bgpd/bgp_dump.c | 1 | ||||
| -rw-r--r-- | ldpd/control.c | 1 | ||||
| -rw-r--r-- | lib/command.c | 1 | ||||
| -rw-r--r-- | lib/libfrr.c | 1 | ||||
| -rw-r--r-- | lib/mgmt_msg.c | 2 | ||||
| -rw-r--r-- | lib/northbound_cli.c | 1 | ||||
| -rw-r--r-- | lib/pid_output.c | 1 | ||||
| -rw-r--r-- | lib/systemd.c | 1 | ||||
| -rw-r--r-- | lib/vty.c | 2 | ||||
| -rw-r--r-- | lib/zebra.h | 1 | ||||
| -rw-r--r-- | lib/zlog.c | 1 | ||||
| -rw-r--r-- | ospf6d/ospf6_auth_trailer.c | 1 | ||||
| -rw-r--r-- | ospfd/ospf_auth.c | 1 | ||||
| -rw-r--r-- | tests/helpers/c/main.c | 1 | ||||
| -rw-r--r-- | tests/isisd/test_isis_spf.c | 1 | ||||
| -rw-r--r-- | tests/lib/cli/common_cli.c | 1 | ||||
| -rw-r--r-- | tests/lib/northbound/test_oper_data.c | 1 | ||||
| -rw-r--r-- | tests/lib/test_privs.c | 1 | ||||
| -rw-r--r-- | tests/ospfd/test_ospf_spf.c | 1 | ||||
| -rw-r--r-- | tools/gen_northbound_callbacks.c | 1 | ||||
| -rw-r--r-- | vtysh/vtysh_main.c | 1 | ||||
| -rw-r--r-- | watchfrr/watchfrr.c | 2 | ||||
| -rw-r--r-- | zebra/zebra_mpls_netlink.c | 1 | ||||
| -rw-r--r-- | zebra/zebra_netns_id.c | 1 | 
25 files changed, 26 insertions, 2 deletions
diff --git a/bfdd/control.c b/bfdd/control.c index f435358f33..19888c1402 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 529713ee32..53b5212482 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 db52d46325..a08ce4cc1a 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 b33998839b..3881829e22 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 e80355f3b8..bbef14378d 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 99d000537c..d9c0d52e41 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 20f030e280..92d4ffb2ba 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 064a7bb47f..ce1b7d1969 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 56a53a6e78..a82c376cfd 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" @@ -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 07cfc4492c..2a92c76f39 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 446bdd7021..3d7bd9ddf5 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 82671eef77..54b951654a 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 74dc7d556b..2b090dca1e 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 8af53a2ea4..fdda7f1e2a 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 6eb180b501..95f045c90d 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 e0981b991a..f9f584f450 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 f82eddd3bf..9ac75da4fe 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 e26754857b..caf55c718f 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 fc6b8e89ec..932763100b 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 5b778a1585..993aa34209 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 c57e8c7997..58b1ded23e 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 73a033170c..6c4fcc3d6d 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 b76640743e..f0f2c4b7a3 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 ae8f9d9a8d..a37d8b41d6 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>  | 
