This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH]prevent warnings while compiling nano-mallocr.c


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]