From bd5dc45296b332449a114c6c5e96e136590d3ab3 Mon Sep 17 00:00:00 2001 From: Edward O'Callaghan Date: Mon, 2 Nov 2009 03:20:57 +0000 Subject: [PATCH] Fix malloc.h is deprecated warning on DragonFly BSD. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85782 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/System/Unix/Process.inc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/System/Unix/Process.inc b/lib/System/Unix/Process.inc index 94e4c1bde25..911b8c32581 100644 --- a/lib/System/Unix/Process.inc +++ b/lib/System/Unix/Process.inc @@ -18,7 +18,9 @@ #ifdef HAVE_SYS_RESOURCE_H #include #endif -#ifdef HAVE_MALLOC_H +// DragonFly BSD has deprecated for instead, +// Unix.h includes this for us already. +#if defined(HAVE_MALLOC_H) && !defined(__DragonFly__) #include #endif #ifdef HAVE_MALLOC_MALLOC_H -- 2.34.1