mirror of
https://git.proxmox.com/git/mirror_frr
synced 2026-01-03 18:02:53 +00:00
[lib] malloc.h is deprecated, try not to include it anymore
2006-05-28 Paul Jakma <paul.jakma@sun.com> * memory.c: malloc.h is deprecated in favour of stdlib.h, however we still need it on GNU Libc for mallinfo().
This commit is contained in:
parent
35cfc90cce
commit
d09552d0c7
@ -3,6 +3,8 @@
|
||||
* zebra.h: Include inttypes.h rather than stdint.h, best practice
|
||||
according to the autoconf manual.
|
||||
Add UINT*_MAX defines for older platforms lacking these (FBSD 4)
|
||||
* memory.c: malloc.h is deprecated in favour of stdlib.h, however
|
||||
we still need it on GNU Libc for mallinfo().
|
||||
|
||||
2006-05-21 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
|
||||
|
||||
|
||||
@ -21,7 +21,10 @@
|
||||
*/
|
||||
|
||||
#include <zebra.h>
|
||||
/* malloc.h is generally obsolete, however GNU Libc mallinfo wants it. */
|
||||
#if defined(HAVE_STDLIB_H) || (defined(GNU_LINUX) && defined(HAVE_MALLINFO))
|
||||
#include <malloc.h>
|
||||
#endif /* !HAVE_STDLIB_H || HAVE_MALLINFO */
|
||||
|
||||
#include "log.h"
|
||||
#include "memory.h"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user