this eliminates consumers of malloc_impl.h outside of the malloc
implementation.
#include "pthread_impl.h"
#include "libc.h"
#include "dynlink.h"
-#include "malloc_impl.h"
static void error(const char *, ...);
hidden ptrdiff_t __tlsdesc_static(), __tlsdesc_dynamic();
+hidden extern int __malloc_replaced;
+hidden void __malloc_donate(char *, char *);
+
#endif
#define MALLOC_IMPL_H
#include <sys/mman.h>
+#include "dynlink.h"
hidden void *__expand_heap(size_t *);
-hidden void __malloc_donate(char *, char *);
-
hidden void *__memalign(size_t, size_t);
struct chunk {
hidden void __bin_chunk(struct chunk *);
-hidden extern int __malloc_replaced;
-
#endif