0
0
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:
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.
*/
#ifdef HAVE_ALLOCA_H
#include <alloca.h>
#endif
#include "alloca.h"
#include "nest/bird.h"
#include "nest/route.h"
#include "nest/protocol.h"

View File

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