forked from Mirror/frr
*: config.h or zebra.h is the first #include
This is mostly relevant for Solaris, where config.h sets up some #define that affect overall header behaviour, so it needs to be before anything else. Signed-off-by: David Lamparter <equinox@diac24.net>
This commit is contained in:
parent
899e4095d1
commit
2618a52ed3
|
@ -17,6 +17,10 @@
|
|||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#include "bgp_addpath.h"
|
||||
#include "bgp_route.h"
|
||||
|
||||
|
|
|
@ -22,6 +22,7 @@
|
|||
#include <zebra.h>
|
||||
#include <math.h>
|
||||
|
||||
#include "printfrr.h"
|
||||
#include "prefix.h"
|
||||
#include "linklist.h"
|
||||
#include "memory.h"
|
||||
|
|
|
@ -22,6 +22,12 @@
|
|||
* memory leak or SEGV for things that haven't been well-tested.
|
||||
*/
|
||||
|
||||
/* This file is "exempt" from having
|
||||
#include "config.h"
|
||||
* as the first include statement because Python.h also does environment
|
||||
* setup & these trample over each other.
|
||||
*/
|
||||
|
||||
#include <Python.h>
|
||||
#include "structmember.h"
|
||||
#include <string.h>
|
||||
|
|
|
@ -20,7 +20,6 @@
|
|||
* with FRR; see the file COPYING. If not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
#include <stdio.h>
|
||||
|
||||
#include <zebra.h>
|
||||
|
||||
|
|
|
@ -17,6 +17,10 @@
|
|||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#include "id_alloc.h"
|
||||
|
||||
#include "log.h"
|
||||
|
|
|
@ -41,6 +41,10 @@
|
|||
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#include "typerb.h"
|
||||
|
||||
#define RB_BLACK 0
|
||||
|
|
|
@ -14,6 +14,10 @@
|
|||
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
|
|
|
@ -19,6 +19,11 @@
|
|||
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
|
||||
* MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#include "if.h"
|
||||
#include "pimd.h"
|
||||
#include "pim_iface.h"
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
#ifdef HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#include "id_alloc.h"
|
||||
|
||||
#include <inttypes.h>
|
||||
|
|
|
@ -18,6 +18,10 @@
|
|||
* Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*/
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdint.h>
|
||||
#include <inttypes.h>
|
||||
|
|
|
@ -17,6 +17,10 @@
|
|||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#include "lib/libfrr.h"
|
||||
#include "lib/debug.h"
|
||||
#include "lib/frratomic.h"
|
||||
|
|
Loading…
Reference in a new issue