summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--nest/rt-attr.c2
-rw-r--r--nest/rt-table.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/nest/rt-attr.c b/nest/rt-attr.c
index 8259877..cccae2f 100644
--- a/nest/rt-attr.c
+++ b/nest/rt-attr.c
@@ -44,7 +44,9 @@
* Routing tables always contain only cached &rta's.
*/
+#ifdef HAVE_ALLOCA_H
#include <alloca.h>
+#endif
#include "nest/bird.h"
#include "nest/route.h"
diff --git a/nest/rt-table.c b/nest/rt-table.c
index 06236b6..db70b66 100644
--- a/nest/rt-table.c
+++ b/nest/rt-table.c
@@ -42,7 +42,9 @@
#include "filter/filter.h"
#include "lib/string.h"
+#ifdef HAVE_ALLOCA_H
#include <alloca.h>
+#endif
static slab *rte_slab;
static linpool *rte_update_pool;