]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Use #include "alloca.h"
authorOndrej Filip <feela@network.cz>
Mon, 31 May 2004 17:07:05 +0000 (17:07 +0000)
committerOndrej Filip <feela@network.cz>
Mon, 31 May 2004 17:07:05 +0000 (17:07 +0000)
lib/alloca.h [new file with mode: 0644]
nest/rt-attr.c
nest/rt-table.c

diff --git a/lib/alloca.h b/lib/alloca.h
new file mode 100644 (file)
index 0000000..57816bd
--- /dev/null
@@ -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
index cccae2f619d491d29e9313d2f86a9c28be29553d..ec8e69ba0c1e95863adb825f9584248026bbe44f 100644 (file)
  * 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"
index db70b6665492ec8916536ec1d4d2546e56fac196..ec5412c22f5eda48cb26f6317c77e986b5920e6f 100644 (file)
 #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;