This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
[PATCH]prevent warnings while compiling nano-mallocr.c
- From: "Jaap de Wolff" <info at jasoon dot nl>
- To: <newlib at sourceware dot org>
- Date: Thu, 8 Feb 2018 10:37:31 +0100
- Subject: [PATCH]prevent warnings while compiling nano-mallocr.c
- Authentication-results: sourceware.org; auth=none
At this moment we are getting warnings on compiling nano-mallocr.c
This patch will prevent this
Jaap de Wolff
=======================================PATCH=====================
diff --git a/newlib/libc/stdlib/nano-mallocr.c
b/newlib/libc/stdlib/nano-mallocr.c
index a0accdd36..657f1439d 100644
--- a/newlib/libc/stdlib/nano-mallocr.c
+++ b/newlib/libc/stdlib/nano-mallocr.c
@@ -177,6 +177,8 @@ extern char * sbrk_start;
extern struct mallinfo current_mallinfo;
/* Forward function declarations */
+extern void __malloc_lock(struct _reent *);
+extern void __malloc_unlock(struct _reent *);
extern void * nano_malloc(RARG malloc_size_t);
extern void nano_free (RARG void * free_p);
extern void nano_cfree(RARG void * ptr);