Browse Source

*: add missing includes

Some places, particularly headers, were spewing warnings since they
don't include neccessary other headers to get struct/enum definitions.

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
David Lamparter 6 years ago
parent
commit
388f8857eb
8 changed files with 11 additions and 0 deletions
  1. 2 0
      isisd/isis_circuit.h
  2. 1 0
      lib/distribute.h
  3. 2 0
      lib/smux.h
  4. 1 0
      ospf6d/ospf6_interface.c
  5. 1 0
      ospf6d/ospf6_neighbor.c
  6. 2 0
      ospf6d/ospf6_snmp.c
  7. 1 0
      vtysh/vtysh_user.c
  8. 1 0
      zebra/if_sysctl.c

+ 2 - 0
isisd/isis_circuit.h

@@ -23,6 +23,8 @@
 #ifndef ISIS_CIRCUIT_H
 #define ISIS_CIRCUIT_H
 
+#include "vty.h"
+
 #define CIRCUIT_MAX 255
 
 struct password

+ 1 - 0
lib/distribute.h

@@ -24,6 +24,7 @@
 
 #include <zebra.h>
 #include "if.h"
+#include "filter.h"
 
 /* Disctirubte list types. */
 enum distribute_type

+ 2 - 0
lib/smux.h

@@ -25,6 +25,8 @@
 #include <net-snmp/agent/net-snmp-agent-includes.h>
 #include <net-snmp/agent/snmp_vars.h>
 
+#include "thread.h"
+
 /* Structures here are mostly compatible with UCD SNMP 4.1.1 */
 #define MATCH_FAILED     (-1)
 #define MATCH_SUCCEEDED  0

+ 1 - 0
ospf6d/ospf6_interface.c

@@ -40,6 +40,7 @@
 #include "ospf6_neighbor.h"
 #include "ospf6_intra.h"
 #include "ospf6_spf.h"
+#include "ospf6_snmp.h"
 #include "ospf6d.h"
 
 unsigned char conf_debug_ospf6_interface = 0;

+ 1 - 0
ospf6d/ospf6_neighbor.c

@@ -38,6 +38,7 @@
 #include "ospf6_neighbor.h"
 #include "ospf6_intra.h"
 #include "ospf6_flood.h"
+#include "ospf6_snmp.h"
 #include "ospf6d.h"
 
 unsigned char conf_debug_ospf6_neighbor = 0;

+ 2 - 0
ospf6d/ospf6_snmp.c

@@ -40,6 +40,8 @@
 #include "ospf6_interface.h"
 #include "ospf6_message.h"
 #include "ospf6_neighbor.h"
+#include "ospf6_abr.h"
+#include "ospf6_asbr.h"
 #include "ospf6d.h"
 #include "ospf6_snmp.h"
 

+ 1 - 0
vtysh/vtysh_user.c

@@ -37,6 +37,7 @@
 #include "memory.h"
 #include "linklist.h"
 #include "command.h"
+#include "vtysh_user.h"
 
 #ifdef USE_PAM
 static struct pam_conv conv = 

+ 1 - 0
zebra/if_sysctl.c

@@ -29,6 +29,7 @@
 #include "memory.h"
 #include "ioctl.h"
 #include "log.h"
+#include "interface.h"
 
 #include "zebra/rt.h"
 #include "zebra/kernel_socket.h"