Malloc: Fix -Wundef warnings
In file included from arch/arm/lib/board.c:43:0: include/malloc.h:490:5: warning: "HAVE_MMAP" is not defined [-Wundef] include/malloc.h:590:5: warning: "HAVE_USR_INCLUDE_MALLOC_H" is not defined [-Wundef] include/malloc.h:757:5: warning: "HAVE_MMAP" is not defined [-Wundef] Signed-off-by: Marek Vasut <marek.vasut@gmail.com> Cc: Wolfgang Denk <wd@denx.de>
This commit is contained in:
parent
47fde91f0c
commit
213adf6dff
@ -487,7 +487,7 @@ do { \
|
|||||||
***/
|
***/
|
||||||
#undef HAVE_MREMAP /* Not available for U-Boot */
|
#undef HAVE_MREMAP /* Not available for U-Boot */
|
||||||
|
|
||||||
#if HAVE_MMAP
|
#ifdef HAVE_MMAP
|
||||||
|
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
@ -587,7 +587,7 @@ do { \
|
|||||||
|
|
||||||
/* #define HAVE_USR_INCLUDE_MALLOC_H */
|
/* #define HAVE_USR_INCLUDE_MALLOC_H */
|
||||||
|
|
||||||
#if HAVE_USR_INCLUDE_MALLOC_H
|
#ifdef HAVE_USR_INCLUDE_MALLOC_H
|
||||||
#include "/usr/include/malloc.h"
|
#include "/usr/include/malloc.h"
|
||||||
#else
|
#else
|
||||||
|
|
||||||
@ -754,7 +754,7 @@ struct mallinfo {
|
|||||||
|
|
||||||
|
|
||||||
#ifndef DEFAULT_MMAP_MAX
|
#ifndef DEFAULT_MMAP_MAX
|
||||||
#if HAVE_MMAP
|
#ifdef HAVE_MMAP
|
||||||
#define DEFAULT_MMAP_MAX (64)
|
#define DEFAULT_MMAP_MAX (64)
|
||||||
#else
|
#else
|
||||||
#define DEFAULT_MMAP_MAX (0)
|
#define DEFAULT_MMAP_MAX (0)
|
||||||
|
Loading…
Reference in New Issue
Block a user