2005-04-22 Paul Jakma <paul.jakma@sun.com>
* memory.h: Move include of memtypes.h to after the definition of
struct memory_list, gcc 4.0 doesn't like arrays of incomplete
types.
diff --git a/lib/memory.h b/lib/memory.h
index 7b47197..ce379e4 100644
--- a/lib/memory.h
+++ b/lib/memory.h
@@ -21,8 +21,6 @@
#ifndef _ZEBRA_MEMORY_H
#define _ZEBRA_MEMORY_H
-#include "memtypes.h"
-
/* For pretty printing of memory allocate information. */
struct memory_list
{
@@ -35,6 +33,8 @@
const char *name;
};
+#include "memtypes.h"
+
extern struct mlist mlists[];
/* #define MEMORY_LOG */