summaryrefslogtreecommitdiffstats
path: root/include/malloc.h
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2007-07-05 18:01:13 +0200
committerSascha Hauer <sha@octopus.labnet.pengutronix.de>2007-07-05 18:01:13 +0200
commit865719ab6dccbc600d08c05c90c1d252b15530f3 (patch)
tree27c85486e519643efcbf4e3c181f645754edc337 /include/malloc.h
parent56e32343eb1a0892c5cf51be773cb2f7b543706f (diff)
downloadbarebox-865719ab6dccbc600d08c05c90c1d252b15530f3.tar.gz
barebox-865719ab6dccbc600d08c05c90c1d252b15530f3.tar.xz
svn_rev_010
unifdef HAVE_MMAP
Diffstat (limited to 'include/malloc.h')
-rw-r--r--include/malloc.h15
1 files changed, 0 insertions, 15 deletions
diff --git a/include/malloc.h b/include/malloc.h
index 8dddc2e42e..5e0a40350a 100644
--- a/include/malloc.h
+++ b/include/malloc.h
@@ -491,17 +491,6 @@ do { \
***/
#undef HAVE_MREMAP /* Not available for U-Boot */
-#if HAVE_MMAP
-
-#include <unistd.h>
-#include <fcntl.h>
-#include <sys/mman.h>
-
-#if !defined(MAP_ANONYMOUS) && defined(MAP_ANON)
-#define MAP_ANONYMOUS MAP_ANON
-#endif
-
-#endif /* HAVE_MMAP */
/*
Access to system page size. To the extent possible, this malloc
@@ -758,12 +747,8 @@ struct mallinfo {
#ifndef DEFAULT_MMAP_MAX
-#if HAVE_MMAP
-#define DEFAULT_MMAP_MAX (64)
-#else
#define DEFAULT_MMAP_MAX (0)
#endif
-#endif
/*
M_MMAP_MAX is the maximum number of requests to simultaneously