From 02fc3c696c18cd2d5aceaa5d0e021396385dfba8 Mon Sep 17 00:00:00 2001 From: Peter Collingbourne Date: Wed, 6 Feb 2019 19:20:47 +0000 Subject: 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 --- llvm/lib/Support/Unix/Process.inc | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'llvm/lib/Support/Unix/Process.inc') 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 #endif -// DragonFlyBSD, and OpenBSD have deprecated for -// instead. Unix.h includes this for us already. -#if defined(HAVE_MALLOC_H) && !defined(__DragonFly__) && \ - !defined(__OpenBSD__) +#if defined(HAVE_MALLINFO) #include #endif #if defined(HAVE_MALLCTL) -- cgit v1.2.3