diff options
author | Marek Vasut <marek.vasut@gmail.com> | 2012-03-29 09:28:15 +0000 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2012-08-09 22:04:52 +0200 |
commit | 213adf6dffe44d909db0efc5ecbdc047bb029438 (patch) | |
tree | 12a0d5c7609d1c20fb4d5f1c303a9a7cb4c12959 /include | |
parent | 47fde91f0cae0cc4ed6a10a52b4a4ff0277dbc45 (diff) |
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>
Diffstat (limited to 'include')
-rw-r--r-- | include/malloc.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/malloc.h b/include/malloc.h index ecf3c678fe4..6295929ea38 100644 --- a/include/malloc.h +++ b/include/malloc.h @@ -487,7 +487,7 @@ do { \ ***/ #undef HAVE_MREMAP /* Not available for U-Boot */ -#if HAVE_MMAP +#ifdef HAVE_MMAP #include <unistd.h> #include <fcntl.h> @@ -587,7 +587,7 @@ do { \ /* #define HAVE_USR_INCLUDE_MALLOC_H */ -#if HAVE_USR_INCLUDE_MALLOC_H +#ifdef HAVE_USR_INCLUDE_MALLOC_H #include "/usr/include/malloc.h" #else @@ -754,7 +754,7 @@ struct mallinfo { #ifndef DEFAULT_MMAP_MAX -#if HAVE_MMAP +#ifdef HAVE_MMAP #define DEFAULT_MMAP_MAX (64) #else #define DEFAULT_MMAP_MAX (0) |