diff options
author | Peter Collingbourne <peter@pcc.me.uk> | 2019-02-06 19:20:47 +0000 |
---|---|---|
committer | Peter Collingbourne <peter@pcc.me.uk> | 2019-02-06 19:20:47 +0000 |
commit | 02fc3c696c18cd2d5aceaa5d0e021396385dfba8 (patch) | |
tree | 3bfe11820fc198f64799d6def41763af8c3d4748 /llvm/lib/Support/Unix/Process.inc | |
parent | 058b628264d276515a0aab66285816fe6cde2aa2 (diff) | |
download | bcm5719-llvm-02fc3c696c18cd2d5aceaa5d0e021396385dfba8.tar.gz bcm5719-llvm-02fc3c696c18cd2d5aceaa5d0e021396385dfba8.zip |
build: Remove the cmake check for malloc.h.
As far as I can tell, malloc.h is only being used here to provide
a definition of mallinfo (malloc itself is declared in stdlib.h via
cstdlib). We already have a macro for whether mallinfo is available,
so switch to using that instead.
Differential Revision: https://reviews.llvm.org/D57807
llvm-svn: 353329
Diffstat (limited to 'llvm/lib/Support/Unix/Process.inc')
-rw-r--r-- | llvm/lib/Support/Unix/Process.inc | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/llvm/lib/Support/Unix/Process.inc b/llvm/lib/Support/Unix/Process.inc index 4597ea4fa91..7c834f97114 100644 --- a/llvm/lib/Support/Unix/Process.inc +++ b/llvm/lib/Support/Unix/Process.inc @@ -32,10 +32,7 @@ #if HAVE_SIGNAL_H #include <signal.h> #endif -// DragonFlyBSD, and OpenBSD have deprecated <malloc.h> for -// <stdlib.h> instead. Unix.h includes this for us already. -#if defined(HAVE_MALLOC_H) && !defined(__DragonFly__) && \ - !defined(__OpenBSD__) +#if defined(HAVE_MALLINFO) #include <malloc.h> #endif #if defined(HAVE_MALLCTL) |