diff options
author | David Lamparter <equinox@opensourcerouting.org> | 2021-04-23 12:04:58 +0200 |
---|---|---|
committer | David Lamparter <equinox@opensourcerouting.org> | 2021-04-23 12:06:35 +0200 |
commit | 1f8031f79a5f2af850d20dfff193e4d0571cb8d3 (patch) | |
tree | fdd3c88e8182b136650977972f9e6a478fcca29e /staticd | |
parent | Merge pull request #8536 from idryzhov/bfd-enabled (diff) | |
download | frr-1f8031f79a5f2af850d20dfff193e4d0571cb8d3.tar.xz frr-1f8031f79a5f2af850d20dfff193e4d0571cb8d3.zip |
*: 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 'staticd')
-rw-r--r-- | staticd/static_nb.c | 2 | ||||
-rw-r--r-- | staticd/static_nb_config.c | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/staticd/static_nb.c b/staticd/static_nb.c index a2a14751c..aa9076aa8 100644 --- a/staticd/static_nb.c +++ b/staticd/static_nb.c @@ -16,6 +16,8 @@ * with this program; see the file COPYING; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#include <zebra.h> + #include "northbound.h" #include "libfrr.h" #include "static_nb.h" diff --git a/staticd/static_nb_config.c b/staticd/static_nb_config.c index db154992f..e78f5172a 100644 --- a/staticd/static_nb_config.c +++ b/staticd/static_nb_config.c @@ -16,6 +16,8 @@ * with this program; see the file COPYING; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#include <zebra.h> + #include "northbound.h" #include "libfrr.h" #include "log.h" |