prevent warnings while compiling nano-mallocr.c

Message ID 002001d3a0c0$7196f580$54c4e080$@jasoon.nl
State New
Headers show
Series
  • prevent warnings while compiling nano-mallocr.c
Related show

Commit Message

Jaap de Wolff Feb. 8, 2018, 9:37 a.m.
At this moment we are getting warnings on compiling nano-mallocr.c
This patch will prevent this

Jaap de Wolff

Patch

=======================================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);