Skip to content
Permalink
Browse files

mallocheap: on linux, use <malloc.h> for malloc_usable_size

  • Loading branch information...
bpowers committed Oct 18, 2019
1 parent 5808161 commit ddaf00cba5d5a5b9ed9cae68a9cccd059cf5a978
Showing with 6 additions and 0 deletions.
  1. +2 −0 heaps/top/mallocheap.h
  2. +4 −0 heaps/utility/localmallocheap.h
@@ -33,6 +33,8 @@
extern "C" size_t malloc_usable_size (void *);
#elif defined(__APPLE__)
#include <malloc/malloc.h>
#elif defined(__linux__)
#include <malloc.h>
#else
extern "C" size_t malloc_usable_size (void *) throw ();
#endif
@@ -38,6 +38,10 @@

#if defined(__SVR4)
extern "C" size_t malloc_usable_size (void *);
#elif defined(__APPLE__)
#include <malloc/malloc.h>
#elif defined(__linux__)
#include <malloc.h>
#else
extern "C" size_t malloc_usable_size (void *) throw ();
#endif

0 comments on commit ddaf00c

Please sign in to comment.
You can’t perform that action at this time.