mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-12-22 17:51:53 +00:00
Use #include "alloca.h"
This commit is contained in:
parent
c222500d8e
commit
0e6eef620d
19
lib/alloca.h
Normal file
19
lib/alloca.h
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
/*
|
||||||
|
* BIRD Library -- Linked Lists
|
||||||
|
*
|
||||||
|
* (c) 2004 Martin Mares <mj@ucw.cz>
|
||||||
|
*
|
||||||
|
* Can be freely distributed and used under the terms of the GNU GPL.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef _BIRD_ALLOCA_H_
|
||||||
|
#define _BIRD_ALLOCA_H_
|
||||||
|
|
||||||
|
#ifdef HAVE_ALLOCA_H
|
||||||
|
#include <alloca.h>
|
||||||
|
#else
|
||||||
|
#include <stdlib.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
#endif
|
@ -44,10 +44,7 @@
|
|||||||
* Routing tables always contain only cached &rta's.
|
* Routing tables always contain only cached &rta's.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef HAVE_ALLOCA_H
|
#include "alloca.h"
|
||||||
#include <alloca.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "nest/bird.h"
|
#include "nest/bird.h"
|
||||||
#include "nest/route.h"
|
#include "nest/route.h"
|
||||||
#include "nest/protocol.h"
|
#include "nest/protocol.h"
|
||||||
|
@ -41,10 +41,7 @@
|
|||||||
#include "conf/conf.h"
|
#include "conf/conf.h"
|
||||||
#include "filter/filter.h"
|
#include "filter/filter.h"
|
||||||
#include "lib/string.h"
|
#include "lib/string.h"
|
||||||
|
#include "alloca.h"
|
||||||
#ifdef HAVE_ALLOCA_H
|
|
||||||
#include <alloca.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
static slab *rte_slab;
|
static slab *rte_slab;
|
||||||
static linpool *rte_update_pool;
|
static linpool *rte_update_pool;
|
||||||
|
Loading…
Reference in New Issue
Block a user