about summary refs log tree commit diff
path: root/include/malloc.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/malloc.h')
-rw-r--r--include/malloc.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/malloc.h b/include/malloc.h
index 448e0a8c6b..eb2afb9330 100644
--- a/include/malloc.h
+++ b/include/malloc.h
@@ -1 +1,11 @@
+#ifndef _MALLOC_H
 #include <malloc/malloc.h>
+
+
+/* In the GNU libc we rename the global variable
+   `__malloc_initialized' to `__libc_malloc_initialized'.  */
+#define __malloc_initialized __libc_malloc_initialized
+/* Nonzero if the malloc is already initialized.  */
+extern int __malloc_initialized attribute_hidden;
+
+#endif