Why are we removing the #include "prefix.h" in stream.h?  I'm not sure what
we gain here.

donald

On Fri, May 22, 2015 at 3:40 AM, Timo Teräs <[email protected]> wrote:

> Fix other places that assumed stream.h pulls in prefix.h.
>
> Signed-off-by: Timo Teräs <[email protected]>
> ---
>  bgpd/bgp_attr.h  | 2 ++
>  isisd/isis_spf.h | 2 ++
>  lib/stream.h     | 3 ++-
>  3 files changed, 6 insertions(+), 1 deletion(-)
>
> diff --git a/bgpd/bgp_attr.h b/bgpd/bgp_attr.h
> index b59fa8e..f6da843 100644
> --- a/bgpd/bgp_attr.h
> +++ b/bgpd/bgp_attr.h
> @@ -21,6 +21,8 @@ Software Foundation, Inc., 59 Temple Place - Suite 330,
> Boston, MA
>  #ifndef _QUAGGA_BGP_ATTR_H
>  #define _QUAGGA_BGP_ATTR_H
>
> +#include "prefix.h"
> +
>  /* Simple bit mapping. */
>  #define BITMAP_NBBY 8
>
> diff --git a/isisd/isis_spf.h b/isisd/isis_spf.h
> index aa543b7..2fb488e 100644
> --- a/isisd/isis_spf.h
> +++ b/isisd/isis_spf.h
> @@ -24,6 +24,8 @@
>  #ifndef _ZEBRA_ISIS_SPF_H
>  #define _ZEBRA_ISIS_SPF_H
>
> +#include "prefix.h"
> +
>  enum vertextype
>  {
>    VTYPE_PSEUDO_IS = 1,
> diff --git a/lib/stream.h b/lib/stream.h
> index 1fc382d..afa0bf6 100644
> --- a/lib/stream.h
> +++ b/lib/stream.h
> @@ -23,7 +23,8 @@
>  #ifndef _ZEBRA_STREAM_H
>  #define _ZEBRA_STREAM_H
>
> -#include "prefix.h"
> +struct prefix;
> +struct in_addr;
>
>  /*
>   * A stream is an arbitrary buffer, whose contents generally are assumed
> to
> --
> 2.4.1
>
>
> _______________________________________________
> Quagga-dev mailing list
> [email protected]
> https://lists.quagga.net/mailman/listinfo/quagga-dev
>
_______________________________________________
Quagga-dev mailing list
[email protected]
https://lists.quagga.net/mailman/listinfo/quagga-dev

Reply via email to