mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-12-22 01:31:55 +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.
|
||||
*/
|
||||
|
||||
#ifdef HAVE_ALLOCA_H
|
||||
#include <alloca.h>
|
||||
#endif
|
||||
|
||||
#include "alloca.h"
|
||||
#include "nest/bird.h"
|
||||
#include "nest/route.h"
|
||||
#include "nest/protocol.h"
|
||||
|
@ -41,10 +41,7 @@
|
||||
#include "conf/conf.h"
|
||||
#include "filter/filter.h"
|
||||
#include "lib/string.h"
|
||||
|
||||
#ifdef HAVE_ALLOCA_H
|
||||
#include <alloca.h>
|
||||
#endif
|
||||
#include "alloca.h"
|
||||
|
||||
static slab *rte_slab;
|
||||
static linpool *rte_update_pool;
|
||||
|
Loading…
Reference in New Issue
Block a user