summaryrefslogtreecommitdiff
path: root/bgpd/bgp_conditional_adv.c
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2021-04-23 12:04:58 +0200
committerDavid Lamparter <equinox@opensourcerouting.org>2021-04-23 12:06:35 +0200
commit1f8031f79a5f2af850d20dfff193e4d0571cb8d3 (patch)
treefdd3c88e8182b136650977972f9e6a478fcca29e /bgpd/bgp_conditional_adv.c
parentb38f1fd03dacfcd2536d96379f575156d3844ee9 (diff)
*: make sure `config.h` or `zebra.h` is first
`config.h` has all the defines from autoconf, which may include things that switch behavior of other included headers (e.g. _GNU_SOURCE enabling prototypes for additional functions.) So, the first include in any `.c` file must be either `config.h` (with the appropriate guard) or `zebra.h` (which includes `config.h` first thing.) Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'bgpd/bgp_conditional_adv.c')
-rw-r--r--bgpd/bgp_conditional_adv.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/bgpd/bgp_conditional_adv.c b/bgpd/bgp_conditional_adv.c
index b9ea26e862..6e80765f86 100644
--- a/bgpd/bgp_conditional_adv.c
+++ b/bgpd/bgp_conditional_adv.c
@@ -18,6 +18,8 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include <zebra.h>
+
#include "bgpd/bgp_conditional_adv.h"
#include "bgpd/bgp_vty.h"