mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-15 08:57:29 +00:00
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.
This commit is contained in:
parent
a0e64a6384
commit
e1e53ed5d7
@ -1,5 +1,8 @@
|
|||||||
2005-04-22 Paul Jakma <paul.jakma@sun.com>
|
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.
|
||||||
* thread.h: Add background thread type and thread_add_background
|
* thread.h: Add background thread type and thread_add_background
|
||||||
macro and accompanying funcname_... function.
|
macro and accompanying funcname_... function.
|
||||||
export thread_should_yield, background threads can use it.
|
export thread_should_yield, background threads can use it.
|
||||||
|
@ -21,8 +21,6 @@ Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
|
|||||||
#ifndef _ZEBRA_MEMORY_H
|
#ifndef _ZEBRA_MEMORY_H
|
||||||
#define _ZEBRA_MEMORY_H
|
#define _ZEBRA_MEMORY_H
|
||||||
|
|
||||||
#include "memtypes.h"
|
|
||||||
|
|
||||||
/* For pretty printing of memory allocate information. */
|
/* For pretty printing of memory allocate information. */
|
||||||
struct memory_list
|
struct memory_list
|
||||||
{
|
{
|
||||||
@ -35,6 +33,8 @@ struct mlist {
|
|||||||
const char *name;
|
const char *name;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#include "memtypes.h"
|
||||||
|
|
||||||
extern struct mlist mlists[];
|
extern struct mlist mlists[];
|
||||||
|
|
||||||
/* #define MEMORY_LOG */
|
/* #define MEMORY_LOG */
|
||||||
|
Loading…
Reference in New Issue
Block a user