0
0
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:
Ondrej Filip 2004-05-31 17:07:05 +00:00
parent c222500d8e
commit 0e6eef620d
3 changed files with 21 additions and 8 deletions

19
lib/alloca.h Normal file
View 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

View File

@ -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"

View File

@ -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;