[PATCH] fix "no previous prototype for 'sbrk'" warning

Antony Pavlov antonynpavlov at gmail.com
Thu Dec 8 05:17:42 EST 2011


Signed-off-by: Antony Pavlov <antonynpavlov at gmail.com>
---
 common/memory.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/common/memory.c b/common/memory.c
index 7d0f4ca..8090baa 100644
--- a/common/memory.c
+++ b/common/memory.c
@@ -28,6 +28,7 @@
 #include <linux/ioport.h>
 #include <asm-generic/memory_layout.h>
 #include <asm/sections.h>
+#include <malloc.h>
 
 /*
  * Begin and End of memory area for malloc(), and current "brk"
-- 
1.7.7.3




More information about the barebox mailing list